summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-08-16 11:43:25 +0300
committerSaku Ytti <saku@ytti.fi>2014-08-16 11:44:51 +0300
commit29c75a45fa8fd5589cc34f7f2841cd163c56b160 (patch)
tree60dc05db175e6accc90798a694a3d4bf021bb30f
parentf0cbdd19179b2aa009c9f6ae29ecf4c01a3ad2a8 (diff)
Closes #35
-rw-r--r--lib/oxidized/cli.rb2
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