-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add RemoteLogger #94
base: master
Are you sure you want to change the base?
Add RemoteLogger #94
Conversation
function Logging.handle_message(logger::RemoteLogger, level::Logging.LogLevel, message, _module, _group, _id, | ||
_file, _line; kwargs...) | ||
@nospecialize | ||
remote_do(logmsg, logger.pid, level, message, _module, _group, _id, _file, _line; pid=myid(), kwargs...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I thought we could directly use handle_message
from the targetted worker but I don't know how to fetch the current_logger
there...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have expertise with Distributed to approve, so we will need to find someone else to review.
You could acknowledge @simonbyrne by adding a line
to a commit message. |
Co-authored-by: simonbyrne <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #94 +/- ##
==========================================
+ Coverage 79.14% 79.23% +0.08%
==========================================
Files 10 11 +1
Lines 1899 1907 +8
==========================================
+ Hits 1503 1511 +8
Misses 396 396 ☔ View full report in Codecov by Sentry. |
As mentioned in the original PR, this feels a bit lacking without support for scopes 🤔 If there's significant demand I would be ok with merging it under a WRT supporting scopes I kinda like the idea here about @vchuravy, @jpsamaroo, any thoughts? |
Closes #52
This is the port from JuliaLang/julia#48121 by @simonbyrne .
I mostly reused the code from the PR, if that's not okay let me know I'll just close this PR.
I also did not made the modification on using this as a default for new workers as this would be unexpected behaviour.