Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runLogTSafe prevents further usage of the logger #5

Open
noteed opened this issue Jul 25, 2024 · 0 comments
Open

runLogTSafe prevents further usage of the logger #5

noteed opened this issue Jul 25, 2024 · 0 comments

Comments

@noteed
Copy link

noteed commented Jul 25, 2024

In the "Logging with ThreadId" README example, the call to runLogTSafe at https://github.com/winterland1989/monad-log/blob/master/README.md?plain=1#L92 seems to prevent further usage of the logger.

Specifically, the line "This is simple log 2" are not logged after the first line.

This seems to be true for the example which is using LogStdout, and also if I change it to use LogFileNoRotate.

Note: I've had to add a call to threadDelay an the end of the example so the program doesn't exit right away. I've compiled the program with ghc --make -threaded.

When replacing runLogTSafe with runLogT', I can see the missing logs.

In case it matters, I've used GHC 9.2.8 and fast-logger 3.1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant