1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-25 14:59:26 +01:00

chore: uses zerolog instead of logrus (#3203)

This commit is contained in:
Amir Raminfar
2024-08-14 10:04:18 -07:00
committed by GitHub
parent 37f0249065
commit 077eeb7917
38 changed files with 278 additions and 265 deletions

View File

@@ -5,7 +5,7 @@ import (
"reflect"
"strings"
log "github.com/sirupsen/logrus"
"github.com/rs/zerolog/log"
)
func ValidateEnvVars(types ...interface{}) {
@@ -26,7 +26,7 @@ func ValidateEnvVars(types ...interface{}) {
for _, env := range os.Environ() {
actual := strings.Split(env, "=")[0]
if strings.HasPrefix(actual, "DOZZLE_") && !expectedEnvs[actual] {
log.Warnf("Unexpected environment variable %s", actual)
log.Warn().Str("env", actual).Msg("Unexpected environment variable")
}
}
}