set default slog

This commit is contained in:
Elio Bischof
2024-11-29 01:00:01 +01:00
parent 3261105fdd
commit 1ce51a5212
7 changed files with 21 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package integration
import (
"bytes"
_ "embed"
"log/slog"
"os/exec"
"path/filepath"
@@ -49,5 +50,8 @@ func init() {
if err := loadedConfig.Log.SetLogger(); err != nil {
panic(err)
}
slog.SetDefault(loadedConfig.Log.Slog())
SystemToken = systemUserToken()
}