Skip to content

Commit e42c3d0

Browse files
committed
feat: thread pool debug mode should be off by default
1 parent 3494a6f commit e42c3d0

File tree

1 file changed

+2
-7
lines changed
  • operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config

1 file changed

+2
-7
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/Utils.java

+2-7
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,10 @@ public static boolean isValidateCustomResourcesEnvVarSet() {
6161
}
6262

6363
public static boolean shouldCheckCRDAndValidateLocalModel() {
64-
return getBooleanEnvProperty(CHECK_CRD_ENV_KEY);
65-
}
66-
67-
private static boolean getBooleanEnvProperty(String envKey) {
68-
final var value = System.getProperty(envKey);
69-
return value == null || Boolean.getBoolean(value);
64+
return Boolean.getBoolean(System.getProperty(CHECK_CRD_ENV_KEY, "true"));
7065
}
7166

7267
public static boolean debugThreadPool() {
73-
return getBooleanEnvProperty(DEBUG_THREAD_POOL_ENV_KEY);
68+
return Boolean.getBoolean(System.getProperty(DEBUG_THREAD_POOL_ENV_KEY, "false"));
7469
}
7570
}

0 commit comments

Comments
 (0)