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:
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user