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
It will detect if the source stream is the same as the origin upon the "unpipe" event.
However, when using logger.child(), the object is actually changed and the close() method would never be triggered.
I wonder if it is an expected behavior. Thanks in advanced.
The text was updated successfully, but these errors were encountered:
2013xile
changed the title
The close() method is not invoked on "unpipe" when use logger.child()
The close() method is not invoked on "unpipe" when using logger.child()May 18, 2024
As the code shows
winston-transport/modern.js
Line 47 in f4be5c7
It will detect if the source stream is the same as the origin upon the "unpipe" event.
However, when using
logger.child()
, the object is actually changed and theclose()
method would never be triggered.https://github.com/winstonjs/winston/blob/debf4fad6a4ee4121904781dc83f8723be604fbe/lib/winston/logger.js#L47
Now I have to trigger the
close()
method manually.I wonder if it is an expected behavior. Thanks in advanced.
The text was updated successfully, but these errors were encountered: