MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / LogWithStatus

Method LogWithStatus

agent/app/task/task.go:327–333  ·  view source on GitHub ↗
(msg string, err error)

Source from the content-addressed store, hash-verified

325}
326
327func (t *Task) LogWithStatus(msg string, err error) {
328 if err != nil {
329 t.Logger.Print(i18n.GetWithNameAndErr("FailedStatus", msg, err))
330 } else {
331 t.Logger.Print(i18n.GetWithName("SuccessStatus", msg))
332 }
333}
334
335func (t *Task) Log(msg string) {
336 t.Logger.Print(msg)

Callers 15

uploadWithMapFunction · 0.45
handlePostgresqlRecoverFunction · 0.45
ImagePullMethod · 0.45
ImagePushMethod · 0.45
SnapshotRecoverMethod · 0.45
handleDownloadSnapshotFunction · 0.45
backupBeforeRecoverFunction · 0.45
readFromJsonFunction · 0.45
recoverBaseDataFunction · 0.45
restartComposeFunction · 0.45
recoverDBDataFunction · 0.45
handleMysqlRecoverFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected