Skip to content

Commit

Permalink
fix: use log/slog with import alias throughout cmd/tumlive/tumlive.go
Browse files Browse the repository at this point in the history
  • Loading branch information
joschahenningsen committed Feb 2, 2025
1 parent b806347 commit 244cc5e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/tumlive/tumlive.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"fmt"
"log/slog"
log "log/slog"
"net"
"net/http"
Expand Down Expand Up @@ -38,8 +37,8 @@ var VersionTag = "development"

type initializer func()

var logger = slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{
Level: slog.LevelDebug,
var logger = log.New(log.NewJSONHandler(os.Stdout, &log.HandlerOptions{
Level: log.LevelDebug,
})).With("service", "main")

var initializers = []initializer{
Expand Down

0 comments on commit 244cc5e

Please sign in to comment.