Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027409Retail ModulesWeb POSpublic2014-08-22 02:452014-10-02 11:38
Orekaria 
Orekaria 
normalmajoralways
closedfixed 
5
 
RR14Q4RR14Q4 
marvintm
No
0027409: Stabilization: Add more and better log to help developers and support
Add more and better log to help developers and support
Add more and better log


Revisit the log levels:

Lower the "Loading data for ..." from info to trace
Lower the "loading..." from info to debug
Lower the "[""] is/are loaded" from info to trace
Change from warning to debug level, the "The following transaction was slow"

for the rest of messages, use common sense
No tags attached.
related to defect 0026890RR14Q3 closed malsasua The console log shows too much info and with wrong levels of detail 
depends on feature request 0027329 new Retail Stabilization: Overhaul the loading process (since the url is entered until the webpos has loaded) 
depends on defect 0026919 closed Orekaria Stabilization: SQLTransaction errors shown on login 
depends on defect 0027419 closed marvintm Stabilization: Remove or change the log level of the Bestdeal Case module messages 
depends on defect 0027986RR14Q4 closed Orekaria Stabilization: Revisit log levels after the introduction of the Debug mode 
has duplicate design defect 0027625RR14Q2.3 closed Orekaria Add log to help with the analysis of the underlying processes 
blocks defect 0027987 closed marvintm Add console log output to the 'showError' and 'showWarning' methods 
Not all the children of this issue are yet resolved or closed.
Issue History
2014-08-22 02:45OrekariaNew Issue
2014-08-22 02:45OrekariaAssigned To => marvintm
2014-08-22 02:45OrekariaTriggers an Emergency Pack => No
2014-08-22 02:46OrekariaRelationship addedrelated to 0026890
2014-08-22 02:46OrekariaRelationship addedblocks 0027329
2014-08-22 02:47OrekariaRelationship addeddepends on 0026919
2014-08-22 10:59OrekariaRelationship replaceddepends on 0027329
2014-08-22 11:51OrekariaRelationship addeddepends on 0027419
2014-09-22 16:24mtaalTarget VersionRR14Q4 =>
2014-09-26 15:39hgbotCheckin
2014-09-26 15:39hgbotNote Added: 0070438
2014-09-26 15:39hgbotStatusnew => resolved
2014-09-26 15:39hgbotResolutionopen => fixed
2014-09-26 15:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3a26f7cfcfb3bf8344b40acfb84cfbbacafff212 [^]
2014-09-27 15:58OrekariaAssigned Tomarvintm => Orekaria
2014-09-27 15:58OrekariaStatusresolved => new
2014-09-27 15:58OrekariaResolutionfixed => open
2014-09-27 15:59OrekariaTypedefect => feature request
2014-09-27 15:59OrekariaSummaryStabilization: The console log levels have to be revisited => Stabilization: Better log
2014-09-27 15:59OrekariaDescription Updatedbug_revision_view_page.php?rev_id=6663#r6663
2014-09-27 15:59OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6665#r6665
2014-09-27 16:01OrekariaSummaryStabilization: Better log => Stabilization: More and better log
2014-09-27 16:01OrekariaDescription Updatedbug_revision_view_page.php?rev_id=6666#r6666
2014-09-27 16:02OrekariaTarget Version => RR14Q4
2014-09-27 16:02OrekariaSummaryStabilization: More and better log => Stabilization: Add more and better log to help developers and support
2014-09-27 23:18hgbotCheckin
2014-09-27 23:18hgbotNote Added: 0070462
2014-09-27 23:29hgbotCheckin
2014-09-27 23:29hgbotNote Added: 0070464
2014-09-28 01:59hgbotCheckin
2014-09-28 01:59hgbotNote Added: 0070465
2014-09-28 02:08hgbotCheckin
2014-09-28 02:08hgbotNote Added: 0070466
2014-09-28 02:08hgbotStatusnew => resolved
2014-09-28 02:08hgbotResolutionopen => fixed
2014-09-28 02:08hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3a26f7cfcfb3bf8344b40acfb84cfbbacafff212 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/cfdf341d63b260dbb41f76111ad00ec9b3d09c99 [^]
2014-09-28 02:57hgbotCheckin
2014-09-28 02:57hgbotNote Added: 0070467
2014-09-28 04:49hgbotCheckin
2014-09-28 04:49hgbotNote Added: 0070468
2014-09-28 21:52hgbotCheckin
2014-09-28 21:52hgbotNote Added: 0070477
2014-09-29 00:34hgbotCheckin
2014-09-29 00:34hgbotNote Added: 0070478
2014-09-29 02:58hgbotCheckin
2014-09-29 02:58hgbotNote Added: 0070480
2014-09-29 12:02hgbotCheckin
2014-09-29 12:02hgbotNote Added: 0070487
2014-09-29 23:23hgbotCheckin
2014-09-29 23:23hgbotNote Added: 0070519
2014-09-30 04:03hgbotCheckin
2014-09-30 04:03hgbotNote Added: 0070522
2014-09-30 04:03hgbotCheckin
2014-09-30 04:03hgbotNote Added: 0070524
2014-09-30 15:39hgbotCheckin
2014-09-30 15:39hgbotNote Added: 0070561
2014-10-01 13:29hgbotCheckin
2014-10-01 13:29hgbotNote Added: 0070607
2014-10-01 17:47hgbotCheckin
2014-10-01 17:47hgbotNote Added: 0070621
2014-10-02 03:33hgbotCheckin
2014-10-02 03:33hgbotNote Added: 0070637
2014-10-02 03:34hgbotCheckin
2014-10-02 03:34hgbotNote Added: 0070639
2014-10-02 11:34marvintmReview Assigned To => marvintm
2014-10-02 11:34marvintmStatusresolved => closed
2014-10-02 11:34marvintmFixed in Version => RR14Q4
2014-10-02 11:38hgbotCheckin
2014-10-02 11:38hgbotNote Added: 0070655
2014-10-02 13:42OrekariaRelationship addedhas duplicate 0027625
2014-10-27 12:05OrekariaRelationship addedblocks 0027986
2014-10-27 12:06OrekariaRelationship replaceddepends on 0027986
2014-10-27 13:05OrekariaRelationship addedblocks 0027987

Notes
(0070438)
hgbot   
2014-09-26 15:39   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 3a26f7cfcfb3bf8344b40acfb84cfbbacafff212
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Fri Sep 26 15:36:56 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3a26f7cfcfb3bf8344b40acfb84cfbbacafff212 [^]

Fixes issue 27409: revisiting log levels

---
M web/org.openbravo.mobile.core/source/data/ob-datasource.js
M web/org.openbravo.mobile.core/source/utils/ob-debug.js
M web/org.openbravo.mobile.core/source/utils/ob-testregistry.js
---
(0070462)
hgbot   
2014-09-27 23:18   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 485eec1ddb537191587748b36fe0c771bb8bafe7
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sat Sep 27 23:17:43 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/485eec1ddb537191587748b36fe0c771bb8bafe7 [^]

Related to issue 27409: the 'onerror' method for uncaught error messages within the WebPOS shows where they were catched

---
M web/org.openbravo.retail.posterminal/index.jsp
M web/org.openbravo.retail.posterminal/js/main.js
---
(0070464)
hgbot   
2014-09-27 23:29   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: e5b36d321d06d217eec55cc6a45ab3149c4a53ae
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sat Sep 27 23:29:20 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e5b36d321d06d217eec55cc6a45ab3149c4a53ae [^]

Related to issue 27409: 'console.error' modified to 'OB.error' in 'login-model.js'

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0070465)
hgbot   
2014-09-28 01:59   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: ca58a30c2a8c2f36ba3792c510f92f183ad8d63f
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Sep 28 01:59:02 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ca58a30c2a8c2f36ba3792c510f92f183ad8d63f [^]

Related to issue 27409: added more info to error messages

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0070466)
hgbot   
2014-09-28 02:08   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: cfdf341d63b260dbb41f76111ad00ec9b3d09c99
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Sep 28 02:08:20 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/cfdf341d63b260dbb41f76111ad00ec9b3d09c99 [^]

Fixes issue 27409: more and improved error messages
- show more error messages in ob-dal
- added more info to error messages in ob-terminal-model
- OB.error, OB.warn and OB.info have better log
- new support methods added in ob-utilities

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---
(0070467)
hgbot   
2014-09-28 02:57   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 9d055522e01a077582d8eb5385b83b208eb0dfdc
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Sep 28 02:57:40 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/9d055522e01a077582d8eb5385b83b208eb0dfdc [^]

Related to issue 27409: more and improved error messages
- OB.debug has been also refactored
- if in debug mode, all logs will be visible in the console
- some messages have been moved to debug

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---
(0070468)
hgbot   
2014-09-28 04:49   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 72921927ec17993b2ab023e576ea7eb553549b06
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Sep 28 04:49:08 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/72921927ec17993b2ab023e576ea7eb553549b06 [^]

Related to issue 27409: changed log level for some messages

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
M web/org.openbravo.retail.posterminal/js/model/executor.js
---
(0070477)
hgbot   
2014-09-28 21:52   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 9a647ac7a4ce04b87cc3180d301ea0ccda5f7c4c
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Sep 28 21:51:44 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/9a647ac7a4ce04b87cc3180d301ea0ccda5f7c4c [^]

Related to issue 27409: better message stringifier for 'argumentsToStringifyed'

---
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---
(0070478)
hgbot   
2014-09-29 00:34   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4a9f762dad492528d89dd7686bf4e742b93222c8
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Sep 29 00:34:07 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4a9f762dad492528d89dd7686bf4e742b93222c8 [^]

Related to issue 27409: formatting

---
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
---
(0070480)
hgbot   
2014-09-29 02:58   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 96af34fa3fce4cabca3a7fed68353950b9d6b6c5
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Sep 29 02:58:27 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/96af34fa3fce4cabca3a7fed68353950b9d6b6c5 [^]

Related to issue 27409: better message when the success callback raises an exception
- the code line in which the exception was provoked has been added to the message

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
---
(0070487)
hgbot   
2014-09-29 12:02   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: e932a25947ebba5c1c8f410659e8898e394b6cd6
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Sep 29 12:01:53 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e932a25947ebba5c1c8f410659e8898e394b6cd6 [^]

Related to issue 27409: removed unnecessary error message now that the 'OB.Dal.find' method show standard log

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0070519)
hgbot   
2014-09-29 23:23   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 6a04e8824aa5da6328ad6d376f98b0850debb89e
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Sep 29 23:21:01 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6a04e8824aa5da6328ad6d376f98b0850debb89e [^]

Related to issue 27409: better log messages
- the stringifier creates more compressed information, an '*' flag is set at the end if the message is sent to the server
- OB.Dal error message changed to console
- the long attribute info is no longer shown, but the line is left uncommented for dev info
- if there is no renderMain method an exception is thrown while in developement

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---
(0070522)
hgbot   
2014-09-30 04:03   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 1fdcd8b29af1dd4ccd3a38b264f3c599d83e76b8
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue Sep 30 03:32:21 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1fdcd8b29af1dd4ccd3a38b264f3c599d83e76b8 [^]

Related to issue 27409: better log messages
- some parts of the stringified message were not shown in the browser.log (do not accept objects)

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---
(0070524)
hgbot   
2014-09-30 04:03   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 8eb24ba3ba275e185c6ec510402fb8ffb28579e9
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Sep 29 23:22:45 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/8eb24ba3ba275e185c6ec510402fb8ffb28579e9 [^]

Related to issue 27409: better log messages
- an exception is thrown when the 'terminal' is not loaded

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0070561)
hgbot   
2014-09-30 15:39   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: e68d94f8a084da134a72f1a86acbaf4ac5ad3214
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue Sep 30 15:39:16 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/e68d94f8a084da134a72f1a86acbaf4ac5ad3214 [^]

Fixes issue 27466, related to issue 27409: Refactor for the navigation logic (IV, core)
- the database will be reopened after chrome closes it ('forcibly closing database')
- better logging for ob-dal
- the error when 'OB.Dal.find' fails because the table is still not present has been changed to warn
- the 'OB.Dal.save' now catch database transaction errors. this approach should be extended to any transaction
- more argument checks

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0070607)
hgbot   
2014-10-01 13:29   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 22c9c9f3742607793e43d393bf051ac5c6157826
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Wed Oct 01 13:29:20 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/22c9c9f3742607793e43d393bf051ac5c6157826 [^]

Related to issue 27409: better log. argumentsToStringifyed algorithm improved

---
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---
(0070621)
hgbot   
2014-10-01 17:47   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 21cd2571b08c70811334ac3ce6d0d43e421e88c9
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Wed Oct 01 17:46:49 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/21cd2571b08c70811334ac3ce6d0d43e421e88c9 [^]

Related to issue 27409: better log. 'getStackLinkBeforeCaller' inform when it was from an async response

---
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---
(0070637)
hgbot   
2014-10-02 03:33   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 6594c09851eee1607b5c3c00dd2738338ca8d03b
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Thu Oct 02 03:12:45 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6594c09851eee1607b5c3c00dd2738338ca8d03b [^]

Related to issue 27409: better log messages

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0070639)
hgbot   
2014-10-02 03:34   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 7ba8b648a119e3081cfd13e4fbeefa4363007fd6
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Thu Oct 02 03:33:05 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7ba8b648a119e3081cfd13e4fbeefa4363007fd6 [^]

Related to issue 27409: better log messages

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---
(0070655)
hgbot   
2014-10-02 11:38   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: d96ccab8e4c7558845f418a15aa04c4f12b7dd30
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Thu Oct 02 11:37:44 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/d96ccab8e4c7558845f418a15aa04c4f12b7dd30 [^]

Related to issue 27409: better log messages
- removed duplicated log line

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---