Skip to content

Commit

Permalink
change default log level
Browse files Browse the repository at this point in the history
  • Loading branch information
minghsu0107 committed Jan 7, 2024
1 parent 12b3c57 commit 6ec4595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/common/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ type GrpcLog struct {

func init() {
slog.SetDefault(slog.New(slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{
Level: slog.LevelError,
Level: slog.LevelInfo,
AddSource: false,
})))
}

func NewHttpLog(config *config.Config) (HttpLog, error) {
logHandler := slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{
Level: slog.LevelError,
Level: slog.LevelInfo,
AddSource: false,
}).WithAttrs([]slog.Attr{
slog.String("proto", "http"),
Expand Down

0 comments on commit 6ec4595

Please sign in to comment.