Open andrey-komarov opened 6 years ago
@andrey-komarov I tried to reproduce this issue and played a bit with it. And it seems it works just fine for me:
[node:WARNING] [2017-12-07 09:46:54.41 UTC]
:thinking:
@andrey-komarov @vrom911 Same for me. I added your line just after this one:
And I can see this character in my terminal. I tested with
$ stack exec play-log 2> err.log
$ cat err.log
to make sure that logging is done to stderr
.
@andrey-komarov Btw, this might help you:
mapM_ (`hSetEncoding` utf8) [stdin, stdout, stderr]
logWarning $ toText $ map chr [128]
Expected: Program not crashes Actual: Program crashes with
play-log: <stderr>: hPutChar: invalid argument (invalid character)
I expect that logging library for no means should be cause of stopping the thread it runs in. Please correct me if I'm wrong about it.