提交 570d8488 编写于 作者: Z zhaoke

fix sonar issue.

上级 c1b2d2a6
......@@ -55,11 +55,7 @@ func InitLog() {
// write exec results by using zap log
func InitExecLog(workspacePath string) {
if commConsts.ExecFrom == commConsts.FromClient {
commConsts.ExecLogDir = logUtils.GetLogDir(workspacePath)
} else {
commConsts.ExecLogDir = logUtils.GetLogDir(workspacePath)
}
commConsts.ExecLogDir = logUtils.GetLogDir(workspacePath)
config := getLogConfig()
config.EncoderConfig.EncodeLevel = nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册