Only log profile save time when there's more than 1 profile

This commit is contained in:
Chomp
2025-08-21 15:06:30 +01:00
parent 0f5044527c
commit 71b33a174b
@@ -92,7 +92,7 @@ public class SaveServer(
totalTime += await SaveProfileAsync(sessionID.Key);
}
if (logger.IsLogEnabled(LogLevel.Debug))
if (profiles.Count > 0 && logger.IsLogEnabled(LogLevel.Debug))
{
logger.Debug($"Saved {profiles.Count} profiles, took: {totalTime}ms");
}