Skip to content

Commit 2cde921

Browse files
committed
Fix tester panic logging format call.
This keeps the log format argument constant so weather service builds and tests pass under current vet/staticcheck behavior.
1 parent e32e73e commit 2cde921

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/weather/services/tester/run_tests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func recoverFromTestPanic(ctx context.Context, testName string, testCollection *
6363
if r := recover(); r != nil {
6464
msg := fmt.Sprintf("[Panic Test]: %v", testName)
6565
err := errors.New(msg)
66-
log.Errorf(ctx, err, fmt.Sprintf("%v", r))
66+
log.Errorf(ctx, err, "%v", r)
6767
var m sync.Mutex
6868
var wg sync.WaitGroup
6969
wg.Add(1)

0 commit comments

Comments
 (0)