From 0e25741292dd4f4f8c9a5b290f4b26152a3848df Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Wed, 6 Oct 2010 18:16:56 +0000 Subject: [PATCH] Restore the editor's log to its previous splendor. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@973 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/java/com/threerings/stage/tools/editor/EditorApp.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/java/com/threerings/stage/tools/editor/EditorApp.java b/src/java/com/threerings/stage/tools/editor/EditorApp.java index 0cab160c..8024cdae 100644 --- a/src/java/com/threerings/stage/tools/editor/EditorApp.java +++ b/src/java/com/threerings/stage/tools/editor/EditorApp.java @@ -22,6 +22,7 @@ package com.threerings.stage.tools.editor; import java.util.List; +import java.util.logging.LogManager; import java.io.BufferedOutputStream; import java.io.File; @@ -97,6 +98,9 @@ public class EditorApp implements Runnable new BufferedOutputStream(new FileOutputStream(dlog)), true); System.setOut(logOut); System.setErr(logOut); + // LogManager caches stderr, that's changed, so reconfigure. + LogManager.getLogManager().readConfiguration(); + log.info("Opened debug log '" + dlog + "'."); } catch (IOException ioe) {