Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theogf committed Mar 13, 2024
1 parent 436101a commit 903dfb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/logger.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ end
function Logging.handle_message(logger::RemoteLogger, level::Logging.LogLevel, message, _module, _group, _id,
_file, _line; kwargs...)
@nospecialize
remote_do(logmsg_code, logger.pid, level, message, _module, _group, _id, _file, _line; pid=myid(), kwargs...)
remote_do(logmsg, logger.pid, level, message, _module, _group, _id, _file, _line; pid=myid(), kwargs...)
end
3 changes: 2 additions & 1 deletion test/distributed_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1929,10 +1929,11 @@ end

# test logging
w = only(addprocs(1))
@everywhere using Logging
@test_logs (:info, "from pid $w") begin
prev_logger = global_logger(current_logger())
try
wait(@spawnat w with_env(RemoteLogger(1)) do
wait(@spawnat w with_logger(RemoteLogger(1)) do
@info("from pid $(myid())")
end)
finally
Expand Down

0 comments on commit 903dfb1

Please sign in to comment.