Skip to content

Commit

Permalink
Remove init()
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Aug 1, 2024
1 parent ec4cf32 commit c25347d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package main

import (
"fmt"
"log"
"os"
"syscall"

"golang.org/x/exp/slog"

Expand All @@ -18,11 +16,6 @@ import (
"github.com/serenize/snaker"
)

func init() {
log.SetFlags(log.Ltime)
log.SetPrefix(fmt.Sprintf("%d|", syscall.Getpid()))
}

func main() {
logger := slog.New(slog.NewJSONHandler(os.Stdout, nil))

Expand Down

0 comments on commit c25347d

Please sign in to comment.