Skip to content

Commit

Permalink
update slog
Browse files Browse the repository at this point in the history
  • Loading branch information
mxssl committed Jun 22, 2024
1 parent a939626 commit be33f51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ go 1.22

require (
github.com/joho/godotenv v1.5.1
golang.org/x/exp v0.0.0-20230321023759-10a507213a29
)
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"syscall"

"github.com/joho/godotenv"
"golang.org/x/exp/slog"
"log/slog"
)

var (
Expand All @@ -27,7 +27,7 @@ const (

func main() {
// Configure logger
logger := slog.New(slog.NewTextHandler(os.Stdout))
logger := slog.New(slog.NewTextHandler(os.Stdout, nil))
slog.SetDefault(logger)

// Load config from .env
Expand Down

0 comments on commit be33f51

Please sign in to comment.