-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add back verbose logging #311
Conversation
@@ -212,4 +215,16 @@ Queue.prototype._dequeuePendingRequest = function(item) { | |||
} | |||
}; | |||
|
|||
Queue.prototype._maybeLog = function(item) { | |||
if (this.logger && this.options.verbose) { | |||
var message = _.get(item, 'data.body.trace.exception.message'); |
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.
Should this also handle logging messages which are not part of a trace/trace_chain?
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.
As far as I can tell,
Line 577 in 7717f62
if (this.options.verbose) { |
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.
Gotcha. If it's easy, I'd like to add verbose logging for messages as well as exceptions. Basically, anytime someone calls one of the top-level API methods which result in a POST.
As far as I can tell, all the verbose option used to do was log to console.error when we are about to log an exception, so this adds that functionality back