Core/Logs: Fix some logs
(cherry picked from commit 5f7ba453ce598f61c4f32958f21c7ad1bbf0fa9d)
This commit is contained in:
@@ -1578,7 +1578,7 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
|
||||
if (!result)
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", ">> Loaded 0 linked respawns. DB table `linked_respawn` is empty.");
|
||||
TC_LOG_INFO("server.loading", ">> Loaded 0 linked respawns. DB table `linked_respawn` is empty.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1939,7 +1939,7 @@ void ObjectMgr::LoadCreatures()
|
||||
|
||||
if (!result)
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", ">> Loaded 0 creatures. DB table `creature` is empty.");
|
||||
TC_LOG_INFO("server.loading", ">> Loaded 0 creatures. DB table `creature` is empty.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2288,7 +2288,7 @@ void ObjectMgr::LoadGameObjects()
|
||||
|
||||
if (!result)
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", ">> Loaded 0 gameobjects. DB table `gameobject` is empty.");
|
||||
TC_LOG_INFO("server.loading", ">> Loaded 0 gameobjects. DB table `gameobject` is empty.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2534,12 +2534,12 @@ void ObjectMgr::LoadSpawnGroupTemplates()
|
||||
if (flags & ~SPAWNGROUP_FLAGS_ALL)
|
||||
{
|
||||
flags &= SPAWNGROUP_FLAGS_ALL;
|
||||
TC_LOG_ERROR("server.loading", "Invalid spawn group flag %u on group ID %u (%s), reduced to valid flag %u.", flags, groupId, group.name.c_str(), uint32(group.flags));
|
||||
TC_LOG_ERROR("sql.sql", "Invalid spawn group flag %u on group ID %u (%s), reduced to valid flag %u.", flags, groupId, group.name.c_str(), uint32(group.flags));
|
||||
}
|
||||
if (flags & SPAWNGROUP_FLAG_SYSTEM && flags & SPAWNGROUP_FLAG_MANUAL_SPAWN)
|
||||
{
|
||||
flags &= ~SPAWNGROUP_FLAG_MANUAL_SPAWN;
|
||||
TC_LOG_ERROR("server.loading", "System spawn group %u (%s) has invalid manual spawn flag. Ignored.", groupId, group.name.c_str());
|
||||
TC_LOG_ERROR("sql.sql", "System spawn group %u (%s) has invalid manual spawn flag. Ignored.", groupId, group.name.c_str());
|
||||
}
|
||||
group.flags = SpawnGroupFlags(flags);
|
||||
} while (result->NextRow());
|
||||
@@ -2547,7 +2547,7 @@ void ObjectMgr::LoadSpawnGroupTemplates()
|
||||
|
||||
if (_spawnGroupDataStore.find(0) == _spawnGroupDataStore.end())
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", "Default spawn group (index 0) is missing from DB! Manually inserted.");
|
||||
TC_LOG_ERROR("sql.sql", "Default spawn group (index 0) is missing from DB! Manually inserted.");
|
||||
SpawnGroupTemplateData& data = _spawnGroupDataStore[0];
|
||||
data.groupId = 0;
|
||||
data.name = "Default Group";
|
||||
@@ -2556,7 +2556,7 @@ void ObjectMgr::LoadSpawnGroupTemplates()
|
||||
}
|
||||
if (_spawnGroupDataStore.find(1) == _spawnGroupDataStore.end())
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", "Default legacy spawn group (index 1) is missing from DB! Manually inserted.");
|
||||
TC_LOG_ERROR("sql.sql", "Default legacy spawn group (index 1) is missing from DB! Manually inserted.");
|
||||
SpawnGroupTemplateData&data = _spawnGroupDataStore[1];
|
||||
data.groupId = 1;
|
||||
data.name = "Legacy Group";
|
||||
@@ -2567,7 +2567,7 @@ void ObjectMgr::LoadSpawnGroupTemplates()
|
||||
if (result)
|
||||
TC_LOG_INFO("server.loading", ">> Loaded " SZFMTD " spawn group templates in %u ms", _spawnGroupDataStore.size(), GetMSTimeDiffToNow(oldMSTime));
|
||||
else
|
||||
TC_LOG_ERROR("server.loading", ">> Loaded 0 spawn group templates. DB table `spawn_group_template` is empty.");
|
||||
TC_LOG_INFO("server.loading", ">> Loaded 0 spawn group templates. DB table `spawn_group_template` is empty.");
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -2581,7 +2581,7 @@ void ObjectMgr::LoadSpawnGroups()
|
||||
|
||||
if (!result)
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", ">> Loaded 0 spawn group members. DB table `spawn_group` is empty.");
|
||||
TC_LOG_INFO("server.loading", ">> Loaded 0 spawn group members. DB table `spawn_group` is empty.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2595,7 +2595,7 @@ void ObjectMgr::LoadSpawnGroups()
|
||||
uint32 type = fields[1].GetUInt8();
|
||||
if (type >= SPAWN_TYPE_MAX)
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", "Spawn data with invalid type %u listed for spawn group %u. Skipped.", type, groupId);
|
||||
TC_LOG_ERROR("sql.sql", "Spawn data with invalid type %u listed for spawn group %u. Skipped.", type, groupId);
|
||||
continue;
|
||||
}
|
||||
spawnType = SpawnObjectType(type);
|
||||
@@ -2605,18 +2605,18 @@ void ObjectMgr::LoadSpawnGroups()
|
||||
SpawnData const* data = GetSpawnData(spawnType, spawnId);
|
||||
if (!data)
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", "Spawn data with ID (%u," UI64FMTD ") not found, but is listed as a member of spawn group %u!", uint32(spawnType), spawnId, groupId);
|
||||
TC_LOG_ERROR("sql.sql", "Spawn data with ID (%u," UI64FMTD ") not found, but is listed as a member of spawn group %u!", uint32(spawnType), spawnId, groupId);
|
||||
continue;
|
||||
}
|
||||
else if (data->spawnGroupData->groupId)
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", "Spawn with ID (%u," UI64FMTD ") is listed as a member of spawn group %u, but is already a member of spawn group %u. Skipping.", uint32(spawnType), spawnId, groupId, data->spawnGroupData->groupId);
|
||||
TC_LOG_ERROR("sql.sql", "Spawn with ID (%u," UI64FMTD ") is listed as a member of spawn group %u, but is already a member of spawn group %u. Skipping.", uint32(spawnType), spawnId, groupId, data->spawnGroupData->groupId);
|
||||
continue;
|
||||
}
|
||||
auto it = _spawnGroupDataStore.find(groupId);
|
||||
if (it == _spawnGroupDataStore.end())
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", "Spawn group %u assigned to spawn ID (%u," UI64FMTD "), but group is found!", groupId, uint32(spawnType), spawnId);
|
||||
TC_LOG_ERROR("sql.sql", "Spawn group %u assigned to spawn ID (%u," UI64FMTD "), but group is found!", groupId, uint32(spawnType), spawnId);
|
||||
continue;
|
||||
}
|
||||
else
|
||||
@@ -2626,7 +2626,7 @@ void ObjectMgr::LoadSpawnGroups()
|
||||
groupTemplate.mapId = data->spawnPoint.GetMapId();
|
||||
else if (groupTemplate.mapId != data->spawnPoint.GetMapId() && !(groupTemplate.flags & SPAWNGROUP_FLAG_SYSTEM))
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", "Spawn group %u has map ID %u, but spawn (%u," UI64FMTD ") has map id %u - spawn NOT added to group!", groupId, groupTemplate.mapId, uint32(spawnType), spawnId, data->spawnPoint.GetMapId());
|
||||
TC_LOG_ERROR("sql.sql", "Spawn group %u has map ID %u, but spawn (%u," UI64FMTD ") has map id %u - spawn NOT added to group!", groupId, groupTemplate.mapId, uint32(spawnType), spawnId, data->spawnPoint.GetMapId());
|
||||
continue;
|
||||
}
|
||||
const_cast<SpawnData*>(data)->spawnGroupData = &groupTemplate;
|
||||
@@ -2648,7 +2648,7 @@ void ObjectMgr::LoadInstanceSpawnGroups()
|
||||
|
||||
if (!result)
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", ">> Loaded 0 instance spawn groups. DB table `instance_spawn_groups` is empty.");
|
||||
TC_LOG_INFO("server.loading", ">> Loaded 0 instance spawn groups. DB table `instance_spawn_groups` is empty.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2660,7 +2660,7 @@ void ObjectMgr::LoadInstanceSpawnGroups()
|
||||
auto it = _spawnGroupDataStore.find(spawnGroupId);
|
||||
if (it == _spawnGroupDataStore.end() || (it->second.flags & SPAWNGROUP_FLAG_SYSTEM))
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", "Invalid spawn group %u specified for instance %u. Skipped.", spawnGroupId, fields[0].GetUInt16());
|
||||
TC_LOG_ERROR("sql.sql", "Invalid spawn group %u specified for instance %u. Skipped.", spawnGroupId, fields[0].GetUInt16());
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -2676,7 +2676,7 @@ void ObjectMgr::LoadInstanceSpawnGroups()
|
||||
if (states & ~ALL_STATES)
|
||||
{
|
||||
info.BossStates = states & ALL_STATES;
|
||||
TC_LOG_ERROR("server.loading", "Instance spawn group (%u,%u) had invalid boss state mask %u - truncated to %u.", instanceMapId, spawnGroupId, states, info.BossStates);
|
||||
TC_LOG_ERROR("sql.sql", "Instance spawn group (%u,%u) had invalid boss state mask %u - truncated to %u.", instanceMapId, spawnGroupId, states, info.BossStates);
|
||||
}
|
||||
else
|
||||
info.BossStates = states;
|
||||
@@ -2685,7 +2685,7 @@ void ObjectMgr::LoadInstanceSpawnGroups()
|
||||
if (flags & ~InstanceSpawnGroupInfo::FLAG_ALL)
|
||||
{
|
||||
info.Flags = flags & InstanceSpawnGroupInfo::FLAG_ALL;
|
||||
TC_LOG_ERROR("server.loading", "Instance spawn group (%u,%u) had invalid flags %u - truncated to %u.", instanceMapId, spawnGroupId, flags, info.Flags);
|
||||
TC_LOG_ERROR("sql.sql", "Instance spawn group (%u,%u) had invalid flags %u - truncated to %u.", instanceMapId, spawnGroupId, flags, info.Flags);
|
||||
}
|
||||
else
|
||||
info.Flags = flags;
|
||||
|
||||
Reference in New Issue
Block a user