This recording duplication occurs in several projects, and I'm not sure why this is happening.
These two lines are logged:
[2016-01-25T21:28:25.019Z] INFO: SmartConnect/11555 on CACSVML-13295.local (/Users/amills001c/WebstormProjects/lectal_all/algolia/oplog/tailing.js:19): about to start tailing... [2016-01-25T21:28:25.019Z] INFO: SmartConnect/11555 on CACSVML-13295.local (/Users/amills001c/WebstormProjects/lectal_all/algolia/oplog/tailing.js:19): about to start tailing...
but I know that the call to register this line is not called twice. This happens in several of my projects, so I think there are other problems.
My configuration for using Bunyan is this:
var bunyan = require('bunyan'); module.exports = bunyan.createLogger({ name: 'Lectal-Logger', src: true, streams: [ { level: 'info', stream: process.stdout }, { level: 'error', stream: process.stderr } ] });
two duplicate log entries above the INFO level - therefore, this should not be the case of stderr and stdout sent to the same place (console / terminal in this case).
One clue is that if I change
log.info
to
log.debug
in my code, then the problem with the duplicate entry disappears. That way, I might be missing out on something about how logging levels work.
Anyone have any ideas why I will see duplicate entries?
source share