-
Notifications
You must be signed in to change notification settings - Fork 18
Conversation
…03df9 git-subtree-dir: client-vendor/source/logger/vendor git-subtree-split: 5303df9f1894b50b630e51ee5ce284c90410a607
…ndor/source/logger/vendor'
@vogdb please review cc @tomaszdurka |
Looks very good. Few notes:
|
Not really, just thought it's strange to not replying something :)
I don't think so, it's the opposite of
The usage is described here: https://github.com/jonnyreeves/js-logger#default-log-handler-function. If it's about Finally, this
agree, the stacktrace might be useful, see 1289137 |
Maybe another library to improve stacktraces should be used? Oftentimes the default stacktrace is not very useful, but there are some techniques to improve them. |
$context->setException($exception); | ||
$this->getServiceManager()->getLogger()->warning('Javascript error', $context); | ||
$context->setExtra($query); | ||
$this->getServiceManager()->getLogger()->warning('JS Error - ' . $query['error']['message'], $context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is quite an important change. We will have a separate log message for every JS error that is recorded. I think it's good, just to keep it in mind.
cc @tomaszdurka
Would be awesome with stacktracejs/stacktrace-gps#4, because in prod, users will not have the sourcemaps. |
You are right. It might just fill lgtm! |
about the stacktrace improvement: #2336 |
(deleted) |
JS Error -
+error.message
console.*
is only used whencm.logger.configure({dev: true})