Commit fcb886af authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent fce7640c
...@@ -24,8 +24,8 @@ import ( ...@@ -24,8 +24,8 @@ import (
"context" "context"
"fmt" "fmt"
taskctx "lab.nexedi.com/kirr/neo/go/internal/xcontext/task"
"lab.nexedi.com/kirr/neo/go/internal/log" "lab.nexedi.com/kirr/neo/go/internal/log"
taskctx "lab.nexedi.com/kirr/neo/go/internal/xcontext/task"
) )
// Running is syntactic sugar to push new task to operational stack, log it and // Running is syntactic sugar to push new task to operational stack, log it and
...@@ -53,10 +53,10 @@ func running(ctxp *context.Context, name string) func(*error) { ...@@ -53,10 +53,10 @@ func running(ctxp *context.Context, name string) func(*error) {
if e := *errp; e != nil { if e := *errp; e != nil {
err = fmt.Sprintf(" (%s)", e) err = fmt.Sprintf(" (%s)", e)
} }
log.Depth(1).Info(ctx, "]" + err) // XXX log -> trace, don't put ":" before "]" log.Depth(1).Info(ctx, "]"+err) // XXX log -> trace, don't put ":" before "]"
// NOTE not *ctxp here - as context pointed by ctxp could be // NOTE not *ctxp here - as context pointed by ctxp could be
// changed when this deferred function is run // changed when this deferred function is run
taskctx.ErrContext(errp, ctx) taskctx.ErrContext(errp, ctx)
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment