Skip to content

Commit 779aa18

Browse files
committed
Rename local var
1 parent c6e48f3 commit 779aa18

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/BeforeAgentInstaller.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,15 @@ private static String getLoggingFrameworksThreshold(Configuration config, String
243243
if (logging == null) {
244244
return defaultValue;
245245
}
246-
Object thresholdObj = logging.get("level");
247-
if (thresholdObj == null) {
246+
Object levelObj = logging.get("level");
247+
if (levelObj == null) {
248248
return defaultValue;
249249
}
250-
if (!(thresholdObj instanceof String)) {
251-
startupLogger.warn("logging level must be a string, but found: {}", thresholdObj.getClass());
250+
if (!(levelObj instanceof String)) {
251+
startupLogger.warn("logging level must be a string, but found: {}", levelObj.getClass());
252252
return defaultValue;
253253
}
254-
String threshold = (String) thresholdObj;
254+
String threshold = (String) levelObj;
255255
if (threshold.isEmpty()) {
256256
return defaultValue;
257257
}

0 commit comments

Comments
 (0)