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
and reuse it on two calls to rotating-file-stream, the second call will fail with:
Error: Don't know how to handle 'options.size' type: number
The type number seems to come from expanding the original object from 10M to 10485760.
My workaround is to create a new object with exact same properties on each call to rotating-file-stream, but in my opinion, it should be up to the module to clone it and not impose this non documented restriction on the user.
The text was updated successfully, but these errors were encountered:
If i create a config object like this:
and reuse it on two calls to
rotating-file-stream
, the second call will fail with:Error: Don't know how to handle 'options.size' type: number
The type number seems to come from expanding the original object from
10M
to10485760
.My workaround is to create a new object with exact same properties on each call to
rotating-file-stream
, but in my opinion, it should be up to the module to clone it and not impose this non documented restriction on the user.The text was updated successfully, but these errors were encountered: