Skip to content

Commit 4ac740e

Browse files
committed
add bind as log parameter
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 6a3dfa4 commit 4ac740e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"errors"
55
"fmt"
6+
"log/slog"
67
"net/http"
78
"os"
89
"regexp"
@@ -62,7 +63,7 @@ func main() {
6263
j.Run()
6364
}()
6465

65-
logger.Infof("starting http server on %s", Opts.Server.Bind)
66+
logger.Info("starting http server", slog.String("bind", Opts.Server.Bind))
6667
startHttpServer()
6768
}
6869

0 commit comments

Comments
 (0)