aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Data/Migrator.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-05-03 17:53:05 -0500
committerJP Dillingham <jp@dillingham.me>2025-05-03 17:53:05 -0500
commit207a645006f75a0fb96f2a1b6a72017f94d42c80 (patch)
tree529c7ccc6c34cdbf84bb27de8109428ada7fc9a0 /src/slskd/Core/Data/Migrator.cs
parentd43c1aba9c07258d9f7f0b9ba59eb6fe33d4bb2c (diff)
downloadslskd-207a645006f75a0fb96f2a1b6a72017f94d42c80.tar.gz
adjust logs
Diffstat (limited to 'src/slskd/Core/Data/Migrator.cs')
-rw-r--r--src/slskd/Core/Data/Migrator.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/slskd/Core/Data/Migrator.cs b/src/slskd/Core/Data/Migrator.cs
index 69294cf5..ffaae586 100644
--- a/src/slskd/Core/Data/Migrator.cs
+++ b/src/slskd/Core/Data/Migrator.cs
@@ -99,7 +99,7 @@ public class Migrator
if (!migrationsNotYetApplied.Any())
{
- Log.Information("Databases are up to date");
+ Log.Information("Databases are up to date!");
return;
}
@@ -107,7 +107,7 @@ public class Migrator
var migrationId = DateTime.UtcNow.ToString("MMddyy_hhmmss");
- Log.Warning("-----> The ID for this migration is {MigrationId}. Use it to locate pre-migration database backups, should manual cleanup be needed. <-----", migrationId);
+ Log.Warning("--> The ID for this migration is {MigrationId}. Use it to locate pre-migration database backups, should manual cleanup be needed. <--", migrationId);
// take some simple backups before we do anything. this gives users a way to get back to a working configuration
// if the migration is interrupted, fails, or if the user wants to revert to the previous version. these files
@@ -170,7 +170,7 @@ public class Migrator
}
}
- Log.Information("{Count} migration(s) applied successfully (elapsed: {Duration}ms elapsed)", total, overallSw.ElapsedMilliseconds);
+ Log.Information("{Count} migration(s) applied successfully (elapsed: {Duration}ms)", total, overallSw.ElapsedMilliseconds);
}
catch (Exception ex)
{
@@ -207,7 +207,7 @@ public class Migrator
File.WriteAllText(HistoryFileName, newHistory); // overwrites existing, if present
Log.Debug("Saved history to {Location}: {History}", HistoryFileName, newHistory);
- Log.Information("Migration(s) complete");
+ Log.Information("Migration(s) complete!");
}
private string MakeSourceDatabasePath(string database) => Path.Combine(Program.DataDirectory, $"{database}.db");