A platform for community discussion. Free, open, simple.
DEV: Correct log level when logging in `Demon::Base` (#31853)
Alan Guo Xiang Tan4816bceaf641
diff --git a/lib/demon/base.rb b/lib/demon/base.rbindex 98bdc905ac7..10a4ebbc771 100644--- a/lib/demon/base.rb+++ b/lib/demon/base.rb@@ -125,7 +125,9 @@ class Demon::Baseif alive?log("Process would not terminate cleanly, force quitting. pid: #{@pid} #{self.class}\n#{caller.join("\n")}",+ level: :warn,)+Process.kill("KILL", @pid)end@@ -229,7 +231,7 @@ class Demon::BaseProcess.kill "KILL", Process.pidendrescue => e- log("URGENT monitoring thread had an exception #{e}")+ log("URGENT monitoring thread had an exception #{e}", level: :error)endsleep 1end