aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-07-18 16:45:17 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-07-18 16:45:17 +0100
commit0f7cce6a4b91e01bac806acaf9210c7bd207549b (patch)
tree1c13d6c8af0dba458eeb8ac02a2028c9c1d4d3ac /bin
parentd9cb98772bfaef1a895907b99ff20f05032f4173 (diff)
parentbbc6dc3fccfcdffef65211dd4d1c4058ecef624b (diff)
merge
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mauveserver12
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/mauveserver b/bin/mauveserver
index aea9d8c..921e6b3 100755
--- a/bin/mauveserver
+++ b/bin/mauveserver
@@ -117,8 +117,16 @@ end
new.formatter = old.formatter
new.level = old.level
- Mauve::Server.instance.logger.outputters << new
- Mauve::Server.instance.logger.outputters.delete(old)
+ Mauve::Server.instance.logger.info "Closing #{old.filename}."
+
+ #
+ # Delete the outputter from each logger.
+ #
+ Log4r::Logger.each_logger do |l|
+ l.outputters << new
+ l.outputters.delete(old)
+ end
+
old.close
Mauve::Server.instance.logger.info "Opened #{new.filename}."