Writes logs into pm2 error stream
Closed this issue · 3 comments
It writes the out into the wrong error stream ,we initially had that issue with Golbat as well, should be an easy fix to write to right stream :)
I think I might partially know now, but can you tell me exactly what you expect?
I normally send everything to Stderr, so that's how this was initially. Then I think heard everything was going to pm2 error log. So I look at Golbat and see it uses Stdout. So I changed to Stdout (that's what's in main now).
So... I think maybe what you're saying is that... 'Info/Warn', etc should go to Stdout while 'Error/Fatal' should go to Stderr?
Or does Warn go to Stderr too?
(I didn't see anything like that in Golbat. Only Stdout. I must be missing something. I don't use pm2.)
Wasn't aware you fixed it, I only saw content in error stream stored in pm2 :)
Thanks, all good then.
Oh excellent :) I was gonna ask if you’d pulled recent main.