Update store.go

This commit is contained in:
İsmail
2024-11-05 22:10:31 +03:00
parent fcba31f2a6
commit faff029843

View File

@@ -316,6 +316,9 @@ func getSqlStoreEngine(ctx context.Context, store *SqlStore, kind StoreEngine) (
}
dsn, ok := os.LookupEnv(mysqlDsnEnv)
log.WithContext(ctx).Warnf("MysqlStoreEngine DSN: %s", mysqlDsnEnv)
if !ok {
return nil, nil, fmt.Errorf("%s is not set", mysqlDsnEnv)
}