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

Method LogWithStatus

core/app/task/task.go:228–234  ·  view source on GitHub ↗
(msg string, err error)

Source from the content-addressed store, hash-verified

226}
227
228func (t *Task) LogWithStatus(msg string, err error) {
229 if err != nil {
230 t.Logger.Print(i18n.GetWithNameAndErr("FailedStatus", msg, err))
231 } else {
232 t.Logger.Print(i18n.GetWithName("SuccessStatus", msg))
233 }
234}
235
236func (t *Task) Log(msg string) {
237 t.Logger.Print(msg)

Callers 1

SyncMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected