Skip to content

Commit 442d68e

Browse files
Use at-debug in workers.jl
1 parent 0cf46b4 commit 442d68e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/workers.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module Workers
22

33
using Sockets, Serialization
4-
using LoggingExtras: @debugv
54

65
export Worker, remote_eval, remote_fetch, terminate!, WorkerTerminatedException
76
export trigger_profile
@@ -129,15 +128,15 @@ end
129128
# gracefully terminate a worker by sending a shutdown message
130129
# and waiting for the other tasks to perform worker shutdown
131130
function Base.close(w::Worker)
132-
@debugv 2 "closing worker $(w.pid)"
131+
@debug "closing $worker"
133132
if !w.terminated && isopen(w.socket)
134133
req = Request(Symbol(), :(), rand(UInt64), true)
135134
@lock w.lock begin
136135
serialize(w.socket, req)
137136
flush(w.socket)
138137
end
139138
end
140-
@debugv 2 "waiting for worker $(w.pid) to terminate"
139+
@debug "waiting for $worker to terminate"
141140
wait(w)
142141
return
143142
end

0 commit comments

Comments
 (0)