aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-10 10:50:05 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-10 10:50:05 +0100
commita2fda55f5574ae9e561199996944772f7e9c0fee (patch)
tree30a7cf7c76cea670f54b291ce6ebf13e238a49f2
parent453ea725a2d7948c28b5166bf38930a2d1de50f9 (diff)
Tidied up initial outputter
-rw-r--r--bin/mauveserver11
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