From f076641f0183ac902019e741feda7474b2c1fdc9 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Sat, 16 Aug 2014 11:43:25 +0300 Subject: Closes #35 --- lib/oxidized/cli.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/oxidized/cli.rb b/lib/oxidized/cli.rb index d6a139d..c66ec8d 100644 --- a/lib/oxidized/cli.rb +++ b/lib/oxidized/cli.rb @@ -16,11 +16,13 @@ module Oxidized private def initialize + Log.info "Oxidized starting, running as pid #{$$}" _args, @opts = parse_opts CFG.debug = true if @opts[:debug] end def crash error + Log.fatal "Oxidized crashed, crashfile written in #{Config::Crash}" open Config::Crash, 'w' do |file| file.puts '-' * 50 file.puts Time.now.utc -- cgit v1.2.1