lib/oxidized/cli.rb in oxidized-0.2.3 vs lib/oxidized/cli.rb in oxidized-0.2.4
- old
+ new
@@ -14,14 +14,16 @@
end
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
file.puts error.message + ' [' + error.class.to_s + ']'
file.puts '-' * 50