diff options
Diffstat (limited to 'bin/mauveserver')
-rw-r--r-- | bin/mauveserver | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/mauveserver b/bin/mauveserver index 0f9ebac..77b372d 100644 --- a/bin/mauveserver +++ b/bin/mauveserver @@ -95,14 +95,13 @@ outputter.level = verbose ? Log4r::DEBUG : Log4r::INFO logger.outputters << outputter def error(msg) - logger = Log4r::Logger.new 'Mauve' - logger.error - logger.error "*** Error: #{msg}\n" - logger.error "*** For help, type: #{$0} -h\n" + logger = Log4r::Logger['Mauve'] + logger.error "*** Error: #{msg}" + logger.error "*** For help, type: #{$0} -h" if msg.respond_to?("backtrace") - logger.debug "*** Backtrace:\n" - logger.debug msg.backtrace.join("\n")+"\n" + logger.debug "*** Backtrace:" + logger.debug msg.backtrace.join("\n") end exit 1 |