fix(log): suppress err msg if no access priv to logfile (#1029)

This commit is contained in:
Kota Kanbe
2020-07-31 16:55:12 +09:00
committed by GitHub
parent 11a7a0c934
commit 3f52d318bc
7 changed files with 21 additions and 22 deletions

View File

@@ -333,7 +333,7 @@ func sshExecExternal(c conf.ServerInfo, cmd string, sudo bool) (result execResul
func getSSHLogger(log ...*logrus.Entry) *logrus.Entry {
if len(log) == 0 {
return util.NewCustomLogger(conf.ServerInfo{})
return util.Log
}
return log[0]
}