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

Clear timerFunctionForBufferedLogs if not needed #14

Closed
wants to merge 1 commit into from

Conversation

btamayo
Copy link

@btamayo btamayo commented Aug 12, 2017

This is an example of a fix for loggly/winston-loggly-bulk#12 with a small amount of code change.

Please note that these lines in common.js:

if (isBulk && isValidToken) {
if (timerFunction === null) {
timerFunction = setInterval(function () {
sendBulkLogs();
},30000);
}

produce the same bug when isBulk is true.

See loggly/winston-loggly-bulk#13. This PR does not address that just in case you would like to implement a better timing solution than using setInterval. I would consider this fix temporary if merged.

Thanks!

This is an example of a fix for loggly/winston-loggly-bulk#12 with a small amount of code change.

Note that these lines:
```
    if (timerFunction === null) {
      timerFunction = setInterval(function () {
        sendBulkLogs();
      },30000);
    }
```

produce the same bug when `isBulk` is `true`. See loggly/winston-loggly-bulk#13
@mostlyjason
Copy link

I believe this was merged in #16. Closing this PR.

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.

None yet

2 participants