Skip to content

Commit ca93b84

Browse files
committed
Fix errors detected by the new ocmlogger linter
1 parent de2ab8d commit ca93b84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

leadership/flag.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ loop:
324324
if err != nil {
325325
f.logger.Error(
326326
f.ctx,
327-
"error running precheck: %v",
327+
"error running precheck: process '%s' name '%s' err %v",
328328
f.process, f.name, err,
329329
)
330330
f.schedule(ctx, f.retryInterval)
@@ -384,7 +384,7 @@ func (f *Flag) check(ctx context.Context) {
384384
if err != nil {
385385
f.logger.Error(
386386
ctx,
387-
"Process '%s' can't create initial state for flag: %v",
387+
"Process '%s' can't create initial state for flag: name %s err %v",
388388
f.process, f.name, err,
389389
)
390390
f.lower(ctx)
@@ -466,7 +466,7 @@ func (f *Flag) check(ctx context.Context) {
466466
f.logger.Error(
467467
ctx,
468468
"Process '%s' can't update holder for flag '%s': %v",
469-
f.process, f.name,
469+
f.process, f.name, err,
470470
)
471471
f.lower(ctx)
472472
f.schedule(ctx, f.retryInterval)

0 commit comments

Comments
 (0)