pino-cloudwatch icon indicating copy to clipboard operation
pino-cloudwatch copied to clipboard

Fixed missing default interval for Stream usage

Open zygos opened this issue 2 years ago • 0 comments

I stumbled upon an issue where pino-cloudwatch as a Writable Stream would result in no reported events. That's because the default interval is only set when running through bin/pino-cloudwatch.js and not when it's directly imported. undefined interval would result in a failed this.interval > 0 check in chunky-stream resulting in skipped setTimeout and thus no reported events. Adding a default value fixed the issue.

zygos avatar Mar 10 '22 08:03 zygos