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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user