Skip to content

Commit

Permalink
Merge pull request #41 from Arkoniak/40-json-race-condition
Browse files Browse the repository at this point in the history
fix: race conditions (#40)
  • Loading branch information
Arkoniak authored Feb 20, 2023
2 parents ff5be48 + 9d6e142 commit e0dc981
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MiniLoggers"
uuid = "93f3dd0f-005d-4452-894a-a31841fa4078"
authors = ["Andrey Oskin and contributors"]
version = "0.5.1"
version = "0.5.2"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
3 changes: 1 addition & 2 deletions src/jsonlogger.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ function handle_message(logger::JsonLogger, level, message, _module, group, id,
print(iob, val)
end
end
print(iob, '\n')
write(io, take!(buf))
write(io, '\n')
# write(io, postprocess(logger.mode, logger.squash_delimiter, buf))

if logger.flush
if logger.flush_threshold <= 0
Expand Down

2 comments on commit e0dc981

@Arkoniak
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/78067

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.2 -m "<description of version>" e0dc981cef28714b3f5be6b43b9dd5f424ff6048
git push origin v0.5.2

Please sign in to comment.