fix(config): Setup logger for secret-stores (#13671)

This commit is contained in:
Sven Rebhan 2023-07-25 17:15:41 +02:00 committed by GitHub
parent 10f735c2cc
commit 63ed4b5f85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -953,6 +953,9 @@ func (c *Config) addSecretStore(name string, table *ast.Table) error {
return err
}
logger := models.NewLogger("secretstores", name, "")
models.SetLoggerOnPlugin(store, logger)
if err := store.Init(); err != nil {
return fmt.Errorf("error initializing secret-store %q: %w", storeid, err)
}