UnownHash / Fletchling

10 stars 3 forks source link

Writes logs into pm2 error stream #26

Closed Fabio1988 closed 8 months ago

Fabio1988 commented 8 months ago

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 :)

comstud commented 8 months ago

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.)

Fabio1988 commented 8 months ago

Wasn't aware you fixed it, I only saw content in error stream stored in pm2 :)

Thanks, all good then.

comstud commented 8 months ago

Oh excellent :) I was gonna ask if you’d pulled recent main.