diff --git a/src/backend/ddc/biz-ddc/src/main/kotlin/com/tencent/bkrepo/ddc/utils/DdcUtils.kt b/src/backend/ddc/biz-ddc/src/main/kotlin/com/tencent/bkrepo/ddc/utils/DdcUtils.kt index 06800b9137..b2adee5803 100644 --- a/src/backend/ddc/biz-ddc/src/main/kotlin/com/tencent/bkrepo/ddc/utils/DdcUtils.kt +++ b/src/backend/ddc/biz-ddc/src/main/kotlin/com/tencent/bkrepo/ddc/utils/DdcUtils.kt @@ -63,7 +63,7 @@ object DdcUtils { fun toError(e: Exception, statusCode: Int, msg: String): Pair { if (statusCode == HttpStatus.INTERNAL_SERVER_ERROR.value) { logger.error("batch op failed:\n${e.stackTraceToString()}") - } else if (statusCode != HttpStatus.NOT_FOUND.value) { + } else if (statusCode != HttpStatus.NOT_FOUND.value && statusCode != HttpStatus.BAD_REQUEST.value) { logger.info("batch op failed:\n${e.stackTraceToString()}") } val obj = CbObject.build {