Skip to content

Commit

Permalink
Capitalize PID in log output
Browse files Browse the repository at this point in the history
  • Loading branch information
nateberkopec committed Nov 30, 2020
1 parent ee3341d commit f13d02c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puma/cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def cull_workers
debug "Workers to cull: #{workers_to_cull.inspect}"

workers_to_cull.each do |worker|
log "- Worker #{worker.index} (pid: #{worker.pid}) terminating"
log "- Worker #{worker.index} (PID: #{worker.pid}) terminating"
worker.term
end
end
Expand Down Expand Up @@ -433,7 +433,7 @@ def run
case req
when "b"
w.boot!
log "- Worker #{w.index} (pid: #{pid}) booted, phase: #{w.phase}"
log "- Worker #{w.index} (PID: #{pid}) booted, phase: #{w.phase}"
@next_check = Time.now
when "e"
# external term, see worker method, Signal.trap "SIGTERM"
Expand Down

0 comments on commit f13d02c

Please sign in to comment.