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
Hi! I was trying to make a logger that prints to both a file and stdOut, but I experienced a problem where I couldn't log anything after wrapping the logger in a convenience function:
After getting some help, I realised I'd made a noob mistake and closed the file handler when the function exited.
All of this ran fine, but when trying to use the logger, I didn't get any output. Not even in stdOut or stdErr.
I'm unsure if this is an actual issue, but I had problems debugging why I didn't get any output, so the codebase could perhaps be improved.
I'm thinking of some documentation describing why this could happen or even better, have the code detect this and give some output saying that X handler has stopped working.
The text was updated successfully, but these errors were encountered:
Hi! I was trying to make a logger that prints to both a file and stdOut, but I experienced a problem where I couldn't log anything after wrapping the logger in a convenience function:
After getting some help, I realised I'd made a noob mistake and closed the file handler when the function exited.
All of this ran fine, but when trying to use the logger, I didn't get any output. Not even in stdOut or stdErr.
I'm unsure if this is an actual issue, but I had problems debugging why I didn't get any output, so the codebase could perhaps be improved.
I'm thinking of some documentation describing why this could happen or even better, have the code detect this and give some output saying that X handler has stopped working.
The text was updated successfully, but these errors were encountered: