can't show 'cfg.Path', as it can contain secrets (#89)

This commit is contained in:
Michael Quigley 2022-11-08 14:07:44 -05:00
parent 604c7c0e7b
commit b9c9e62910
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -51,7 +51,7 @@ func Open(cfg *Config) (*Store, error) {
default:
return nil, errors.Errorf("unknown database type '%v' (supported: sqlite3, postgres)", cfg.Type)
}
logrus.Infof("opened database '%v'", cfg.Path)
logrus.Info("database connected")
dbx.MapperFunc(strcase.ToSnake)
store := &Store{cfg: cfg, db: dbx}