Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

chore: quiet schema migration logging on launch

Gabe Kangas4f8af1ba0250
diff --git a/persistence/configrepository/configMigrations.go b/persistence/configrepository/configMigrations.go
index e40f30346d..3aa9aac26c 100644
--- a/persistence/configrepository/configMigrations.go
+++ b/persistence/configrepository/configMigrations.go
@@ -21,7 +21,7 @@ func migrateDatastoreValues(datastore *datastore.Datastore, configRepository Con
}
for v := currentVersion; v < datastoreValuesVersion; v++ {
- log.Infof("Migration datastore values from %d to %d\n", int(v), int(v+1))
+ log.Debugf("Migration datastore values from %d to %d\n", int(v), int(v+1))
switch v {
case 0:
migrateToDatastoreValues1(datastore)
diff --git a/persistence/migrations/migrations.go b/persistence/migrations/migrations.go
index 392b182195..a84a803983 100644
--- a/persistence/migrations/migrations.go
+++ b/persistence/migrations/migrations.go
@@ -52,7 +52,7 @@ func Run(db *sql.DB, backupDirectory string) error {
}
if legacyVersion > 0 && legacyVersion < legacyBaselineVersion {
- log.Infof("Legacy schema at version %d; upgrading to %d before handing off to goose",
+ log.Debugf("Legacy schema at version %d; upgrading to %d before handing off to goose",
legacyVersion, legacyBaselineVersion)
if err := legacymigrations.MigrateDatabaseSchema(db, backupDirectory, legacyVersion, legacyBaselineVersion); err != nil {
return fmt.Errorf("legacy schema catch-up: %w", err)
@@ -106,5 +106,5 @@ func (gooseLogger) Printf(format string, v ...interface{}) {
if strings.Contains(fmt.Sprintf(format, v...), "no migrations to run") {
return
}
- log.Infof(format, v...)
+ log.Debugf(format, v...)
}