migrate: Change debug log to info

and add an info migration not been applied before log.
This commit is contained in:
IRHM
2026-07-11 03:27:31 +01:00
parent dd0bae137f
commit c8920c911d
+4 -1
View File
@@ -54,6 +54,9 @@ func Now(db *gorm.DB) error {
continue
}
slog.Info("Migration has NOT been applied before.. applying.",
"id", mig.ID)
// Timing the migration.
timeBeforeMig := time.Now()
@@ -89,7 +92,7 @@ func Now(db *gorm.DB) error {
}
}
slog.Debug("Migration applied successfully.",
slog.Info("Migration applied successfully.",
"id", mig.ID,
"duration", time.Since(timeBeforeMig))
}