refactor: use central logger

This commit is contained in:
2024-07-07 23:45:37 +02:00
parent cf8ff410cc
commit ef108d63e1
86 changed files with 903 additions and 889 deletions

View File

@ -7,8 +7,8 @@ import (
"regexp"
"strings"
"coopcloud.tech/abra/pkg/log"
"git.coopcloud.tech/coop-cloud/godotenv"
"github.com/sirupsen/logrus"
)
// envVarModifiers is a list of env var modifier strings. These are added to
@ -31,7 +31,7 @@ func ReadEnv(filePath string) (AppEnv, error) {
return nil, err
}
logrus.Debugf("read %s from %s", envVars, filePath)
log.Debugf("read %s from %s", envVars, filePath)
return envVars, nil
}
@ -45,7 +45,7 @@ func ReadEnvWithModifiers(filePath string) (AppEnv, AppModifiers, error) {
return nil, mods, err
}
logrus.Debugf("read %s from %s", envVars, filePath)
log.Debugf("read %s from %s", envVars, filePath)
return envVars, mods, nil
}
@ -83,9 +83,9 @@ func ReadAbraShEnvVars(abraSh string) (map[string]string, error) {
}
if len(envVars) > 0 {
logrus.Debugf("read %s from %s", envVars, abraSh)
log.Debugf("read %s from %s", envVars, abraSh)
} else {
logrus.Debugf("read 0 env var exports from %s", abraSh)
log.Debugf("read 0 env var exports from %s", abraSh)
}
return envVars, nil