lib/splash/cli/logs.rb in prometheus-splash-0.4.5 vs lib/splash/cli/logs.rb in prometheus-splash-0.5.0
- old
+ new
@@ -38,12 +38,13 @@
splash_exit case: :quiet_exit
end
desc "monitor", "monitor logs in config"
def monitor
+ log = get_logger
+ log.level = :fatal if options[:quiet]
result = Splash::LogScanner::new
result.analyse
- result.notify
splash_exit result.notify
end
desc "show LOG", "show configured log monitoring for LOG"