build: fix gocritic change missed in merge

The original problem was introduced here

bcdfad3c83 build: update logging statements to make json log work #6038

And this was fixed non-optimally here

f1a84d171e build: fix build after update
This commit is contained in:
Nick Craig-Wood 2024-09-06 17:29:30 +01:00
parent 5f9a201b45
commit 842396c8a0

View File

@ -10,7 +10,6 @@ import (
"context"
"errors"
"fmt"
"log"
"os"
"os/exec"
"path"
@ -429,7 +428,7 @@ func initConfig() {
// Start the metrics server if configured
_, err = rcserver.MetricsStart(ctx, &rc.Opt)
if err != nil {
log.Fatalf("Failed to start metrics server: %v", err)
fs.Fatalf(nil, "Failed to start metrics server: %v", err)
}