chore: Adjust task log output format (#11372)

This commit is contained in:
ssongliu 2025-12-17 14:24:09 +08:00 committed by GitHub
parent 4fcf3e11cd
commit 2546809013
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -329,7 +329,7 @@ func (t *Task) LogFailed(msg string) {
}
func (t *Task) LogFailedWithErr(msg string, err error) {
t.Logger.Printf("%s %s : %s\n", msg, i18n.GetMsgByKey("Failed"), err.Error())
t.Logger.Printf("%s %s : %s", msg, i18n.GetMsgByKey("Failed"), err.Error())
}
func (t *Task) LogSuccess(msg string) {
@ -340,7 +340,7 @@ func (t *Task) LogSuccessF(format string, v ...any) {
}
func (t *Task) LogStart(msg string) {
t.Logger.Printf("%s%s\n", i18n.GetMsgByKey("Start"), msg)
t.Logger.Printf("%s%s", i18n.GetMsgByKey("Start"), msg)
}
func (t *Task) LogWithOps(operate, msg string) {