refactor: Simplify migration logging by removing redundant config.Debug check
This commit is contained in:
parent
ad076f585b
commit
1345fa9c9e
@ -110,13 +110,11 @@ func migrateDatabase(ctx context.Context, dbPool *gorm.DB, config models.Databas
|
||||
return utils.HandleError(ctx, span, localLogger, err)
|
||||
}
|
||||
|
||||
if config.Debug {
|
||||
if n != 0 {
|
||||
localLogger.Debugf("applied %d migrations!", n)
|
||||
} else {
|
||||
localLogger.Debug("nothing to migrate")
|
||||
}
|
||||
}
|
||||
|
||||
utils.HandleEvent(span, localLogger, "Database migration completed successfully")
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user