Skip to content

Commit fc8748e

Browse files
make some pidfile @warn -> @debug
1 parent 2923869 commit fc8748e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Pidfile/Pidfile.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Helper function for `open_exclusive` for deciding if a pidfile is stale.
147147
"""
148148
function stale_pidfile(path::String, stale_age::Real)
149149
pid, hostname, age = parse_pidfile(path)
150-
age < -stale_age && @warn "filesystem time skew detected" path=path
150+
age < -stale_age && @debug "filesystem time skew detected" path=path
151151
if age > stale_age
152152
if (age > stale_age * 25) || !isvalidpid(hostname, pid)
153153
return true
@@ -191,7 +191,7 @@ function open_exclusive(path::String;
191191
if !wait
192192
if file === nothing && stale_age > 0
193193
if stale_age > 0 && stale_pidfile(path, stale_age)
194-
@warn "attempting to remove probably stale pidfile" path=path
194+
@debug "attempting to remove probably stale pidfile" path=path
195195
try
196196
rm(path)
197197
catch ex
@@ -224,7 +224,7 @@ function open_exclusive(path::String;
224224
# if the file seems stale, try to remove it before attempting again
225225
# set stale_age to zero so we won't attempt again, even if the attempt fails
226226
stale_age -= stale_age
227-
@warn "attempting to remove probably stale pidfile" path=path
227+
@debug "attempting to remove probably stale pidfile" path=path
228228
try
229229
rm(path)
230230
catch ex

0 commit comments

Comments
 (0)