File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,14 @@ public static void info(String msg){
1919 }
2020
2121 public static void debug (String msg ){
22- LOGGER .debug (msg );
22+ if (Config .debug ) {
23+ LOGGER .info (msg );
24+ } else {
25+ LOGGER .debug (msg );
26+ }
2327 }
2428
2529 private Log (){
2630 }
2731
28- public static void setLogLevel (Level level ) {
29- if (LOGGER instanceof org .apache .logging .log4j .core .Logger ) {
30- ((org .apache .logging .log4j .core .Logger ) LOGGER ).setLevel (level );
31- }
32- }
33-
3432}
Original file line number Diff line number Diff line change @@ -106,9 +106,6 @@ public void preInit(FMLPreInitializationEvent event) {
106106 FMLCommonHandler .instance ().bus ().register (new Config ());
107107
108108 Config .init (event .getSuggestedConfigurationFile ());
109- if (Config .debug ) {
110- Log .setLogLevel (Level .ALL );
111- }
112109 creativeTab = new CreativeTabs (Taam .MOD_ID ) {
113110
114111 @ Override
You can’t perform that action at this time.
0 commit comments