]> git.cworth.org Git - sup/commitdiff
Merge branch 'logging' into next
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Tue, 1 Sep 2009 03:04:05 +0000 (23:04 -0400)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Tue, 1 Sep 2009 03:04:05 +0000 (23:04 -0400)
bin/sup

diff --git a/bin/sup b/bin/sup
index 3d5b6c1da0207cd0ec41b8756522f3a4c6880a4b..cdf1ff24169cc5b1da1e27d2cf4f03ac2969daa6 100755 (executable)
--- a/bin/sup
+++ b/bin/sup
@@ -169,6 +169,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