mongodb db push: Only log changes if they are not empty
@@ -12,11 +12,13 @@ impl DatabaseMigrationStepApplier for MongoDbMigrationConnector {
async fn apply_migration(&self, migration: &Migration) -> ConnectorResult<u32> {
let db = self.client().await?.database();
+ if !self.migration_is_empty(migration) {
tracing::info!(
migrate_action = "log",
"Applying the following changes:\n\n{}",
self.migration_summary(migration)
);
+ }
let migration: &MongoDbMigration = migration.downcast_ref();
