You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, seems like that when the message is print, it still takes several seconds for node to actually quit. By inspecting the code I found this section:
.then(()=>{if(callback){callback()}})// maybe should emit something here
After closing routine is triggered, the routine would still delay for the set timespan after executing sendBatchToLoki before returning. Is this designed behaviour? I tried to add if (!this.runLoop) break; after line 236 and the problem went away, but I am not sure if that would affect other things.
The text was updated successfully, but these errors were encountered:
I tried to gracefully shutdown winston by doing this before the exit of the program:
However, seems like that when the message is print, it still takes several seconds for
node
to actually quit. By inspecting the code I found this section:winston-loki/src/batcher.js
Lines 232 to 259 in e6c2d20
After closing routine is triggered, the routine would still delay for the set timespan after executing
sendBatchToLoki
before returning. Is this designed behaviour? I tried to addif (!this.runLoop) break;
after line 236 and the problem went away, but I am not sure if that would affect other things.The text was updated successfully, but these errors were encountered: