From 4933bea3388ad999190e5e42dfdb18b00a4134ff Mon Sep 17 00:00:00 2001 From: dailidong Date: Thu, 25 Apr 2019 15:30:13 +0800 Subject: [PATCH] when debug,show jdbc parameter log --- .../java/cn/escheduler/api/service/DataSourceService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/escheduler-api/src/main/java/cn/escheduler/api/service/DataSourceService.java b/escheduler-api/src/main/java/cn/escheduler/api/service/DataSourceService.java index a5c72758fb..36b9b45861 100644 --- a/escheduler-api/src/main/java/cn/escheduler/api/service/DataSourceService.java +++ b/escheduler-api/src/main/java/cn/escheduler/api/service/DataSourceService.java @@ -480,7 +480,9 @@ public class DataSourceService extends BaseService{ } - logger.info("parameters map-----" + JSONObject.toJSONString(parameterMap)); + if(logger.isDebugEnabled()){ + logger.info("parameters map-----" + JSONObject.toJSONString(parameterMap)); + } return JSONObject.toJSONString(parameterMap);