Openbravo Issue Tracking System - POS2
View Issue Details
0046596POS2Corepublic2021-05-10 07:432021-05-13 07:23
alostale 
alostale 
normalmajoralways
closedfixed 
5
 
 
approved
No
No
0046596: no stack traces in terminal log
When pos2 is deployed in production mode (from Tomcat), the messages generated in the terminal log do not include stack trace at all.
1. Use the pos2 deployed in production mode (ie. livebuilds)
2. Check in the terminal log technical messages.
  ERROR: they finish with "stackTrace: undefined"
No tags attached.
Issue History
2021-05-10 07:43alostaleNew Issue
2021-05-10 07:43alostaleAssigned To => Retail
2021-05-10 07:43alostaleOBNetwork customer => No
2021-05-10 07:43alostaleResolution time => 1622412000
2021-05-10 07:43alostaleTriggers an Emergency Pack => No
2021-05-10 07:43alostaleAssigned ToRetail => alostale
2021-05-10 07:43alostaleStatusnew => scheduled
2021-05-10 07:45alostaleSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22474#r22474
2021-05-10 10:03hgbotMerge Request Status => open
2021-05-10 10:03hgbotNote Added: 0127930
2021-05-13 06:52hgbotMerge Request Statusopen => approved
2021-05-13 07:23hgbotResolutionopen => fixed
2021-05-13 07:23hgbotStatusscheduled => closed
2021-05-13 07:23hgbotNote Added: 0128053
2021-05-13 07:23hgbotFixed in Version => RR21Q3
2021-05-13 07:23hgbotNote Added: 0128054

Notes
(0127930)
hgbot   
2021-05-10 10:03   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/223 [^]
(0128053)
hgbot   
2021-05-13 07:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/223 [^]
(0128054)
hgbot   
2021-05-13 07:23   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 94a8ae05f2c1ecfcd65e4b81060c3a545904f552
Author: Asier Lostalé <asier.lostale@openbravo.com>
Date: 2021-05-13T05:22:58+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/94a8ae05f2c1ecfcd65e4b81060c3a545904f552 [^]

fixed BUG-46596: no stack traces in terminal log from core2

core2 applications when served in production mode, did not include any
stack trace in their terminal log. This occurred because ob-log's
getStackTrace function tried to remove unrelevant callers by removing
all the callers in the stack from OB.error/warn/info. To pick the 1st
relevant stack element function name was used to compare.

In core2 webpack mangles function names so this comparision didn't work
resulting on empty stack traces.

getStackTrace function is a private function which is always invoked
from the same place, we don't need to compare by function name but just
pick the stack from the known position, this works regardless function
name mangling.

---
M web/org.openbravo.mobile.core/source/utils/ob-log.js
---