summaryrefslogtreecommitdiff
path: root/addons/l10n_be_invoice_bba
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2020-01-30 13:30:34 +0000
committerXavier Morel <xmo@odoo.com>2020-01-30 16:12:33 +0000
commit5cfd32db9c20f0bd17af775e5470120c9c3d649b (patch)
tree5a4c3f2737c87dae95cf7c5317444c9befccee09 /addons/l10n_be_invoice_bba
parent2221f03624bc56606688687399092b8168a05427 (diff)
[IMP] core: only show JS stacktrace for exceptions & console.trace
When revamping the message fetching from the headless browser, since stacktraces are available (by default) on console.error and console.warning events I assumed it could / would be useful to show them in the Python-level log. And they *were* quite useful during the original fixing stage. However they turn out not to be very useful day-to-day: * they add a lot of noise and lead to the error message itself being lost in a big block of red / logging.error * when a tour fails (which is the vast majority of the failures) the JS stacktrace always points to the same location in the tour manager (the one which goes "this step never succeeded") which is completely useless * aside from being bundled, normal JS code (where the stacktrace could be useful) doesn't generally use console.warn or console.error, it's going to straight blow up with an exception in which case we always get a stacktrace Leave the stacktrace formatting for console.trace as that's pretty much the only point of using this instead of console.log. closes odoo/odoo#44343 X-original-commit: 34500853f39c9557852cb83cbc274f59d803922f Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/l10n_be_invoice_bba')
0 files changed, 0 insertions, 0 deletions