diff options
author | Saku Ytti <saku@ytti.fi> | 2014-08-16 11:43:25 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2014-08-16 11:43:25 +0300 |
commit | f076641f0183ac902019e741feda7474b2c1fdc9 (patch) | |
tree | e781b3159d433d9ece9209f37fe1549717c0107c /lib | |
parent | 9272a9b98786e65c206ca8206c1c327cf66ffb17 (diff) |
Closes #35
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/cli.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |