From a2fda55f5574ae9e561199996944772f7e9c0fee Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 10 Aug 2011 10:50:05 +0100 Subject: Tidied up initial outputter --- bin/mauveserver | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'bin') 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 -- cgit v1.2.1