]> git.notmuchmail.org Git - sup/blobdiff - bin/sup
Merge branch 'logging' into next
[sup] / 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