Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 8beab12

Browse files
committed
fix logger issue
1 parent 3c37924 commit 8beab12

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

frontend/server/src/main/java/org/pytorch/serve/util/ConfigManager.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ public final class ConfigManager {
5454
// NOTE: Variables which can be configured through environment variables **SHOULD** have a
5555
// "TS_" prefix
5656

57-
private org.slf4j.Logger logger = LoggerFactory.getLogger(ConfigManager.class);
58-
5957
private static final String TS_DEBUG = "debug";
6058
private static final String TS_INFERENCE_ADDRESS = "inference_address";
6159
private static final String TS_MANAGEMENT_ADDRESS = "management_address";
@@ -803,7 +801,7 @@ public int getJsonIntValue(String modelName, String version, String element, int
803801
value = defaultVal;
804802
}
805803
} catch (ClassCastException | IllegalStateException e) {
806-
logger.error(
804+
Logger.getRootLogger().error(
807805
"Invalid value for model: "
808806
+ modelName
809807
+ ":"

0 commit comments

Comments
 (0)