mirror of
https://codeberg.org/scip/anydb.git
synced 2026-10-08 11:14:20 +02:00
update go to 1.26 and dependencies (#29)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package cfg
|
||||
|
||||
/*
|
||||
Copyright © 2025 Thomas von Dein
|
||||
Copyright © 2025-2026 Thomas von Dein
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -14,7 +16,6 @@ GNU General Public License for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package cfg
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -26,7 +27,7 @@ import (
|
||||
"codeberg.org/scip/anydb/app"
|
||||
"codeberg.org/scip/anydb/common"
|
||||
"github.com/lmittmann/tint"
|
||||
"github.com/pelletier/go-toml"
|
||||
"github.com/pelletier/go-toml/v2"
|
||||
"github.com/tlinden/yadu"
|
||||
)
|
||||
|
||||
@@ -148,8 +149,7 @@ func (conf *Config) SetLogger() {
|
||||
AddSource: false,
|
||||
}
|
||||
|
||||
handler := tint.NewHandler(os.Stderr, opts)
|
||||
logger := slog.New(handler)
|
||||
logger := slog.New(tint.NewTextHandler(os.Stderr, opts))
|
||||
|
||||
slog.SetDefault(logger)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user