diff options
| author | Kargatum <dowlandtop@yandex.com> | 2021-06-21 08:07:12 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-21 03:07:12 +0200 |
| commit | 5787d00d545aaf4139f84f3e207c3b69b5b4231f (patch) | |
| tree | 3cf485002afad54439c4632ccf7fbfe6cc9d497d /src/server/game/Scripting/ScriptMgr.h | |
| parent | 9f80a592bbd42098a17f6fb0b4f724fbe0d8b90e (diff) | |
chore(Core/Logging): replace most server loggers (#5726)
* chore(Core/Logging): replace most server loggers
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Diffstat (limited to 'src/server/game/Scripting/ScriptMgr.h')
| -rw-r--r-- | src/server/game/Scripting/ScriptMgr.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/Scripting/ScriptMgr.h b/src/server/game/Scripting/ScriptMgr.h index 2d2307684b..87dfc36513 100644 --- a/src/server/game/Scripting/ScriptMgr.h +++ b/src/server/game/Scripting/ScriptMgr.h @@ -247,7 +247,7 @@ public: _mapEntry = sMapStore.LookupEntry(_mapId); if (!_mapEntry) - LOG_ERROR("server", "Invalid MapScript for %u; no such map ID.", _mapId); + LOG_ERROR("maps.script", "Invalid MapScript for %u; no such map ID.", _mapId); } // Gets the MapEntry structure associated with this script. Can return nullptr. @@ -288,7 +288,7 @@ public: checkMap(); if (GetEntry() && !GetEntry()->IsWorldMap()) - LOG_ERROR("server", "WorldMapScript for map %u is invalid.", GetEntry()->MapID); + LOG_ERROR("maps.script", "WorldMapScript for map %u is invalid.", GetEntry()->MapID); } }; @@ -305,7 +305,7 @@ public: checkMap(); if (GetEntry() && !GetEntry()->IsDungeon()) - LOG_ERROR("server", "InstanceMapScript for map %u is invalid.", GetEntry()->MapID); + LOG_ERROR("maps.script", "InstanceMapScript for map %u is invalid.", GetEntry()->MapID); } // Gets an InstanceScript object for this instance. @@ -325,7 +325,7 @@ public: checkMap(); if (GetEntry() && !GetEntry()->IsBattleground()) - LOG_ERROR("server", "BattlegroundMapScript for map %u is invalid.", GetEntry()->MapID); + LOG_ERROR("maps.script", "BattlegroundMapScript for map %u is invalid.", GetEntry()->MapID); } }; @@ -1956,7 +1956,7 @@ public: else { // If the script is already assigned -> delete it! - LOG_ERROR("server", "Script named '%s' is already assigned (two or more scripts have the same name), so the script can't work, aborting...", + LOG_ERROR("scripts", "Script named '%s' is already assigned (two or more scripts have the same name), so the script can't work, aborting...", script->GetName().c_str()); ABORT(); // Error that should be fixed ASAP. @@ -2000,7 +2000,7 @@ private: { if (it->second == script) { - LOG_ERROR("server", "Script '%s' has same memory pointer as '%s'.", + LOG_ERROR("scripts", "Script '%s' has same memory pointer as '%s'.", script->GetName().c_str(), it->second->GetName().c_str()); return false; |
