Skip to content

Commit

Permalink
refactor: remove tint
Browse files Browse the repository at this point in the history
  • Loading branch information
ayn2op committed Dec 12, 2024
1 parent 4b47c68 commit a098f47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ require (
github.com/diamondburned/arikawa/v3 v3.4.0
github.com/diamondburned/ningen/v3 v3.0.1-0.20240808103805-f1a24c0da3d8
github.com/gdamore/tcell/v2 v2.7.4
github.com/lmittmann/tint v1.0.5
github.com/rivo/tview v0.0.0-20241103174730-c76f7879f592
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/yuin/goldmark v1.7.8
Expand Down
4 changes: 1 addition & 3 deletions internal/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"path/filepath"

"github.com/ayn2op/discordo/internal/config"
"github.com/lmittmann/tint"
)

// Recursively creates the log directory if it does not exist already and returns the path to the log file.
Expand Down Expand Up @@ -36,8 +35,7 @@ func Load() error {
return err
}

h := tint.NewHandler(file, nil)
l := slog.New(h)
l := slog.New(slog.NewTextHandler(file, &slog.HandlerOptions{AddSource: true}))
slog.SetDefault(l)
return nil
}

0 comments on commit a098f47

Please sign in to comment.