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

pass loggly http client errors to winston continuation #4

Merged
merged 1 commit into from Jul 25, 2017

Conversation

@zachgrayio
Copy link

@zachgrayio zachgrayio commented Oct 7, 2016

Background: in the case of a failed attempt to post a message to Loggly, it'd be nice to be able to detect the failure via Winston's log() callback param and respond accordingly (write to file, write to console, etc).

I was perplexed to discover that HTTP errors in the Loggly client don't result in an error being passed back up to continuation functions supplied to winston's log() method, and upon reading the source, it appeared to be a simple oversight.

This single commit enables the expected behavior.

…opagated up correctly and can be consumed by end users
@mostlyjason
Copy link

@mostlyjason mostlyjason commented Feb 10, 2017

@Shwetajain148 can you review when you get a chance? Seems like a small change.

@Shwetajain148
Copy link

@Shwetajain148 Shwetajain148 commented Jul 20, 2017

@mchaudhary, @mostlyjason I have tested this PR at my end and it seems to work fine so kindly merge this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.