Преглед на файлове

Added library name to logger messages

Lortseam преди 4 години
родител
ревизия
19b22a3bd0

+ 1 - 1
src/main/java/me/lortseam/completeconfig/Config.java

@@ -28,7 +28,7 @@ public class Config extends CollectionMap {
                     .create()
                     .fromJson(json, CollectionMapDeserializer.TYPE);
         } catch (JsonSyntaxException e) {
-            LOGGER.warn("An error occurred while trying to load the config for category " + category.getClass());
+            LOGGER.warn("[CompleteConfig] An error occurred while trying to load the config for category " + category.getClass());
         }
     }
 

+ 1 - 1
src/main/java/me/lortseam/completeconfig/ConfigManager.java

@@ -46,7 +46,7 @@ public final class ConfigManager {
             } catch (FileNotFoundException e) {
                 throw new RuntimeException(e);
             } catch (JsonSyntaxException e) {
-                LOGGER.warn("An error occurred while trying to load the config for mod " + modID);
+                LOGGER.warn("[CompleteConfig] An error occurred while trying to load the config for mod " + modID);
             }
         }
         return JsonNull.INSTANCE;

+ 1 - 1
src/main/java/me/lortseam/completeconfig/serialization/EntryDeserializer.java

@@ -28,7 +28,7 @@ public class EntryDeserializer<T> implements JsonDeserializer<Entry<T>> {
             T value = context.deserialize(json, configEntry.getType());
             configEntry.setValue(value);
         } catch (JsonParseException e) {
-            LOGGER.warn("An error occurred while trying to load the config entry's value of field " + configEntry.getField() + ": " + e.getMessage());
+            LOGGER.warn("[CompleteConfig] An error occurred while trying to load the config entry's value of field " + configEntry.getField() + ": " + e.getMessage());
         }
         return configEntry;
     }