mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 17:14:17 +02:00
adopt latest golang enhancements (#91)
This commit is contained in:
@@ -29,13 +29,13 @@ import (
|
||||
const LevelNotice = slog.Level(2)
|
||||
|
||||
func Init(conf *cfg.Config) {
|
||||
logLevel := &slog.LevelVar{}
|
||||
logLevel := new(slog.LevelVar{})
|
||||
|
||||
opts := &yadu.Options{
|
||||
opts := new(yadu.Options{
|
||||
Level: logLevel,
|
||||
AddSource: true,
|
||||
NoColor: !isatty.IsTerminal(os.Stdout.Fd()),
|
||||
}
|
||||
})
|
||||
|
||||
buildInfo, _ := debug.ReadBuildInfo()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user