refactor: remove tint

This commit is contained in:
ayn2op 2024-12-11 23:26:09 -05:00
parent 4b47c68962
commit a098f47732
2 changed files with 1 additions and 4 deletions

1
go.mod
View file

@ -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

View file

@ -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.
@ -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
}