Skip to content

Commit 2546809

Browse files
authored
chore: Adjust task log output format (#11372)
1 parent 4fcf3e1 commit 2546809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/app/task/task.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ func (t *Task) LogFailed(msg string) {
329329
}
330330

331331
func (t *Task) LogFailedWithErr(msg string, err error) {
332-
t.Logger.Printf("%s %s : %s\n", msg, i18n.GetMsgByKey("Failed"), err.Error())
332+
t.Logger.Printf("%s %s : %s", msg, i18n.GetMsgByKey("Failed"), err.Error())
333333
}
334334

335335
func (t *Task) LogSuccess(msg string) {
@@ -340,7 +340,7 @@ func (t *Task) LogSuccessF(format string, v ...any) {
340340
}
341341

342342
func (t *Task) LogStart(msg string) {
343-
t.Logger.Printf("%s%s\n", i18n.GetMsgByKey("Start"), msg)
343+
t.Logger.Printf("%s%s", i18n.GetMsgByKey("Start"), msg)
344344
}
345345

346346
func (t *Task) LogWithOps(operate, msg string) {

0 commit comments

Comments
 (0)