add timing to debug not info, remove a clone that i dont think is needed

This commit is contained in:
CWX
2025-01-29 13:35:18 +00:00
parent 5c30fa1152
commit b4602dce23
5 changed files with 16 additions and 7 deletions
+4 -1
View File
@@ -189,7 +189,10 @@ public class BotController(
Task.WaitAll(tasks.ToArray());
stopwatch.Stop();
_logger.Info($"Took {stopwatch.ElapsedMilliseconds}ms to GenerateMultipleBotsAndCache");
if (_logger.IsLogEnabled(LogLevel.Debug))
{
_logger.Debug($"Took {stopwatch.ElapsedMilliseconds}ms to GenerateMultipleBotsAndCache");
}
return [];
}