wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Enhance error Logging

Open rrg92 opened this issue 3 years ago • 0 comments

This will enhance the logging of error messages in catch blocks (the javascript Error object).

Due to a problem on wiston, when logging an error object, the winston just prints the messages, and all important details (like error line, etc,) is hidden. Details: https://github.com/winstonjs/winston/issues/1338

For example, if I'm developing a module or something fails with an Error, this is what is printed in the wiki.js log:

image

After this fix, the error is printed with more info:

image

rrg92 avatar Sep 16 '22 02:09 rrg92