fix: set docker inspector logging level correctly even when logging.level.detect shortcut is used
@@ -129,7 +129,12 @@ public class DetectableOptionFactory {
String suppliedDockerImage = getNullableValue(DetectProperties.DETECT_DOCKER_IMAGE);
String dockerImageId = getNullableValue(DetectProperties.DETECT_DOCKER_IMAGE_ID);
String suppliedDockerTar = getNullableValue(DetectProperties.DETECT_DOCKER_TAR);
- LogLevel dockerInspectorLoggingLevel = getValue(DetectProperties.LOGGING_LEVEL_COM_SYNOPSYS_INTEGRATION);
+ LogLevel dockerInspectorLoggingLevel;
+ if (detectConfiguration.wasKeyProvided(DetectProperties.LOGGING_LEVEL_DETECT.getProperty().getKey())) {
+ dockerInspectorLoggingLevel = getValue(DetectProperties.LOGGING_LEVEL_DETECT);
+ } else {
+ dockerInspectorLoggingLevel = getValue(DetectProperties.LOGGING_LEVEL_COM_SYNOPSYS_INTEGRATION);
+ }
String dockerInspectorVersion = getNullableValue(DetectProperties.DETECT_DOCKER_INSPECTOR_VERSION);
Map<String, String> additionalDockerProperties = detectConfiguration.getRaw(DetectProperties.DOCKER_PASSTHROUGH.getProperty());
if (diagnosticSystem != null) {
