Skip to content

Commit

Permalink
refactor: rename exec-time to exec-dur
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Stewart <christian@aperture.us>
  • Loading branch information
paralin committed May 4, 2024
1 parent 299f0a5 commit 2116a71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ added directive directive="LoadControllerWithConfi
added directive directive="ExecController<config-id=controllerbus/example/boilerplate>"
starting controller controller=controllerbus/example/boilerplate
hello from boilerplate controller 1: hello world controller=controllerbus/example/boilerplate
controller exited normally controller=controllerbus/example/boilerplate exec-time="31.053µs"
controller exited normally controller=controllerbus/example/boilerplate exec-dur="31.053µs"
```

### ConfigSet
Expand Down
2 changes: 1 addition & 1 deletion controller/loader/loader-resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (c *resolver) Resolve(ctx context.Context, vh directive.ResolverHandler) er
le.Debug("starting controller")
execErr := bus.ExecuteController(c.ctx, ci)

le := le.WithField("exec-time", time.Since(t1).String())
le := le.WithField("exec-dur", time.Since(t1).String())
ctxCanceled := ctx.Err() != nil
if execErr != nil && (!ctxCanceled || execErr != context.Canceled) {
le.WithError(execErr).Warn("controller exited with error")
Expand Down

0 comments on commit 2116a71

Please sign in to comment.