Skip to content
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

Merged
merged 4 commits into from
Jun 15, 2017
Merged

add back verbose logging #311

merged 4 commits into from
Jun 15, 2017

Conversation

rokob
Copy link
Contributor

@rokob rokob commented Jun 12, 2017

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

@@ -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');
Copy link
Contributor

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?

Copy link
Contributor Author

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,

if (this.options.verbose) {
is the only use of the verbose option in the old rollbar.js this basically matches that. I am not sure exactly what we want to log in verbose mode. There were also a lot of info logging to the console going on before which we have essentially removed. I have to dig in to see how that was configured, but it did not use the verbose option.

Copy link
Contributor

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.

@rokob rokob merged commit b4fac6b into master Jun 15, 2017
@rokob rokob deleted the verbosity branch October 31, 2017 23:13
mudetroit pushed a commit that referenced this pull request Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants