fix: only log once for the loaded app

This commit is contained in:
decentral1se 2024-12-31 08:26:19 +01:00
parent cd6af9708c
commit 5d0faf5e13
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
2 changed files with 1 additions and 5 deletions

View File

@ -36,7 +36,7 @@ func Get(appName string) (App, error) {
return App{}, err return App{}, err
} }
log.Debugf("retrieved %s for %s", app, appName) log.Debugf("loaded app %s: %s", appName, app)
return app, nil return app, nil
} }
@ -235,8 +235,6 @@ func ReadAppEnvFile(appFile AppFile, name AppName) (App, error) {
return App{}, fmt.Errorf("env file for %s couldn't be read: %s", name, err.Error()) return App{}, fmt.Errorf("env file for %s couldn't be read: %s", name, err.Error())
} }
log.Debugf("read env %s from %s", env, appFile.Path)
app, err := NewApp(env, name, appFile) app, err := NewApp(env, name, appFile)
if err != nil { if err != nil {
return App{}, fmt.Errorf("env file for %s has issues: %s", name, err.Error()) return App{}, fmt.Errorf("env file for %s has issues: %s", name, err.Error())

View File

@ -31,8 +31,6 @@ func ReadEnv(filePath string) (AppEnv, error) {
return nil, err return nil, err
} }
log.Debugf("read %s from %s", envVars, filePath)
return envVars, nil return envVars, nil
} }