Closed dansgithubuser closed 6 years ago
Hmm that's weird what version of node are you using? I haven't tested this flushAll extensively, I've pushed a fix to npm logdna version 2.0.4. Do let me know if that works, thanks.
Was using version 2.0.2. All seems in order now. Thanks for the fast response!
https://github.com/logdna/nodejs/blob/master/lib/logger.js#L238
should be
if (--expectedCallbacks < 1) cb();
orif (expectedCallbacks-- <= 1) cb();