]> git.cworth.org Git - sup/blobdiff - bin/sup
Merge branch 'logging-tweaks'
[sup] / bin / sup
diff --git a/bin/sup b/bin/sup
index bbb6c1711a7d5f580530a95859b4853649bf69c9..605c55342b11b1cdfd4e8fc9bfd64a98ba154129 100755 (executable)
--- a/bin/sup
+++ b/bin/sup
@@ -168,6 +168,9 @@ begin
   lmode.on_kill { Logger.clear! }
   Logger.add_sink lmode
   Logger.force_message "Welcome to Sup! Log level is set to #{Logger.level}."
+  if Logger::LEVELS.index(Logger.level) > 0
+    Logger.force_message "For more verbose logging, restart with SUP_LOG_LEVEL=#{Logger::LEVELS[Logger::LEVELS.index(Logger.level)-1]}."
+  end
 
   debug "initializing inbox buffer"
   imode = InboxMode.new