Skip to content

Commit 9d6e142

Browse files
author
Andrey Oskin
committed
fix: race conditions (#40)
1 parent ab2aa2b commit 9d6e142

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MiniLoggers"
22
uuid = "93f3dd0f-005d-4452-894a-a31841fa4078"
33
authors = ["Andrey Oskin and contributors"]
4-
version = "0.5.1"
4+
version = "0.5.2"
55

66
[deps]
77
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"

src/jsonlogger.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ function handle_message(logger::JsonLogger, level, message, _module, group, id,
128128
print(iob, val)
129129
end
130130
end
131+
print(iob, '\n')
131132
write(io, take!(buf))
132-
write(io, '\n')
133-
# write(io, postprocess(logger.mode, logger.squash_delimiter, buf))
134133

135134
if logger.flush
136135
if logger.flush_threshold <= 0

0 commit comments

Comments
 (0)