Core/Logs: Add load time to some logs like every other load log

Port From (https://github.com/TrinityCore/TrinityCore/commit/41a4692de37c7591516d9a9f86b3019b90556428)
This commit is contained in:
hondacrx
2021-01-26 16:44:45 -05:00
parent 4fb259abfa
commit c9254a4686
2 changed files with 11 additions and 4 deletions
+6 -2
View File
@@ -29,6 +29,8 @@ namespace Game
public void LoadWardenChecks()
{
uint oldMSTime = Time.GetMSTime();
// Check if Warden is enabled by config before loading anything
if (!WorldConfig.GetBoolValue(WorldCfg.WardenEnabled))
{
@@ -98,11 +100,13 @@ namespace Game
}
while (result.NextRow());
Log.outInfo(LogFilter.ServerLoading, "Loaded {0} warden checks.", count);
Log.outInfo(LogFilter.ServerLoading, $"Loaded {count} warden checks in {Time.GetMSTimeDiffToNow(oldMSTime)} ms");
}
public void LoadWardenOverrides()
{
uint oldMSTime = Time.GetMSTime();
// Check if Warden is enabled by config before loading anything
if (!WorldConfig.GetBoolValue(WorldCfg.WardenEnabled))
{
@@ -138,7 +142,7 @@ namespace Game
}
while (result.NextRow());
Log.outInfo(LogFilter.ServerLoading, "Loaded {0} warden action overrides.", count);
Log.outInfo(LogFilter.ServerLoading, $"Loaded {count} warden action overrides in {Time.GetMSTimeDiffToNow(oldMSTime)} ms");
}
public WardenCheck GetWardenDataById(ushort Id)