logdna / logdna-browser

A frontend browser logging and exception capturing library for LogDNA
MIT License
19 stars 14 forks source link

Log Stacktrace not from the original error #45

Open maxjf1 opened 2 years ago

maxjf1 commented 2 years ago

Logdna sometimes don't preserve the original stacktrace. I'm loading logdna on an separated file called logs.js at the opening of the <head> file. this file is compiled and minified. the stacktrace shown on most logs are from the own logs.js file, instead of the original error.

errorMessage: Script error.
stacktrace:
@https://myproject.com/js/logs.js:1:21125
@https://myproject.com/js/logs.js:1:18593
@https://myproject.com/js/logs.js:1:19243
@https://myproject.com/js/logs.js:1:14898