Skip to content

Commit

Permalink
Merge pull request #316 from WeDataSphere/dev-1.1.16-webank-logperiod
Browse files Browse the repository at this point in the history
update period to 10 and fix ecm log info
  • Loading branch information
casionone authored Oct 17, 2023
2 parents 89f3d51 + 480f50e commit f19fe29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ object ECMConfiguration {
GovernanceCommonConf.ENGINE_CONN_MANAGER_SPRING_NAME.getValue

val ECM_HEALTH_REPORT_PERIOD: Long =
CommonVars("wds.linkis.ecm.health.report.period", 30).getValue
CommonVars("wds.linkis.ecm.health.report.period", 10).getValue

val ECM_HEALTH_REPORT_DELAY: Long =
CommonVars("wds.linkis.ecm.health.report.delay", 10).getValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ abstract class LogManager extends LogListener with Logging {
var writeLog = log
errorCodeManager.foreach(_.errorMatchAndGetContent(log).foreach {
case (code, errorMsg, targetMsg) =>
if (!targetMsg.contains(LogUtils.ERROR_STR)) {
if (!targetMsg.contains(LogUtils.ERROR_STR) && log.contains(LogUtils.ERROR_STR)) {
writeLog = LogUtils.generateERROR(
s"error code: $code, errorMsg: $errorMsg, errorLine: $targetMsg \n" + log
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ public Message saveKeyValue(HttpServletRequest req, @RequestBody Map<String, Obj
if (engineType.equals("*") && !version.equals("*")) {
return Message.error("When engineType is any engine, the version must also be any version");
}
if (StringUtils.isBlank(configKey) || StringUtils.isBlank(value)) {
return Message.error("key or value cannot be empty");
if (StringUtils.isBlank(configKey)) {
return Message.error("key cannot be empty");
}
if (StringUtils.isNotBlank(user)) {
username = user;
Expand Down

0 comments on commit f19fe29

Please sign in to comment.