Skip to content

Commit

Permalink
Keep reference to old logger to keep inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
14mRh4X0r committed Oct 3, 2013
1 parent 3e53ba2 commit 73c0297
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/etc.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* @author James
*/
public class etc {
private static final Logger OLD_LOGGER = Logger.getLogger("Minecraft"); // Keep reference to keep parent setting
private static final Logger log = Logger.getLogger("Minecraft-Server");
private static final etc instance = new etc();
private static OMinecraftServer server;
Expand Down Expand Up @@ -112,7 +113,7 @@ private void loadIds(Collection<Integer> storage, String rawData) {
* Loads or reloads the mod
*/
public final void load() {
Logger.getLogger("Minecraft").setParent(log);
OLD_LOGGER.setParent(log);

if (configDir == null) {
configDir = "config/";
Expand Down

0 comments on commit 73c0297

Please sign in to comment.