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
Unfortunately I don't know how to reproduce this but I periodically get an error thrown by tslog of Cannot read property 'isError' of null while attempting to log a message with a JS object. I see this usually in production. Although I think I've also seen it in local dev.
Expected behavior
Should not error
Additional context
import{Logger}from"tslog"exportconstlogger=newLogger({type: clientEnv.isProduction ? "json" : "pretty",dateTimePattern: "hour:minute:second.millisecond",displayFunctionName: false,displayFilePath: "hidden",dateTimeTimezone: clientEnv.isProduction
? "utc"
: Intl.DateTimeFormat().resolvedOptions().timeZone,prettyInspectHighlightStyles: {name: "yellow",number: "blue",bigint: "blue",boolean: "blue"},maskValuesOfKeys: ["password","passwordConfirmation"],exposeErrorCodeFrame: !clientEnv.isProduction,})// And then I'm also using a child loggerconstlog=logger.getChildLogger({prefix: ["submitGroupStep1()"]})
Node.js Version
12
The text was updated successfully, but these errors were encountered:
I tried multiple things and wasn't really able to reproduce this issue and also couldn't find that error in my logs.
However, I've found one spot with a missing optional chaining, which I added. So I really hope 🤞 that it solves this issue.
Describe the bug
tslog version:
3.1.0
Unfortunately I don't know how to reproduce this but I periodically get an error thrown by tslog of
Cannot read property 'isError' of null
while attempting to log a message with a JS object. I see this usually in production. Although I think I've also seen it in local dev.Expected behavior
Should not error
Additional context
Node.js Version
12
The text was updated successfully, but these errors were encountered: