logger.error('some message ' + e.message)
logger.error('some message ' + e);
logger.error('some message ' + e.toString());
I saw no stacktraces in logs. Coming from java I converted a few errors to:
logger.error('some message ' + e.stack)
.stack, I feel I lose important information. We ended up by him changing my
I looked at logs and sometimes the
.stack just prints two lines not much of a stack, however for me the first line where it printed the filename and the line number where the problem happened is justifying the
I can search the error message in code and find it, for me that is not suffice because i don't think this is scalable a day would come where we would find multiple places with the same printing and if we had a stack we would know exactly which file printed the error and in certain cases also have stack.
e.message and not
e.stack? am i taking something from java that i should not be?