Remove logging of expedition query failures

This is redundant with sql error logging. Logging the operations is
enough to determine the source of any errors
This commit is contained in:
hg
2020-06-14 17:16:03 -04:00
parent 6dcb44e6fe
commit 6cce00ec9a
3 changed files with 26 additions and 83 deletions
+3 -5
View File
@@ -429,6 +429,8 @@ void DynamicZone::RemoveAllCharacters(bool enable_removal_timers)
void DynamicZone::SaveInstanceMembersToDatabase(const std::unordered_set<uint32_t>& character_ids)
{
LogDynamicZonesDetail("Saving [{}] instance members to database", character_ids.size());
std::string insert_values;
for (const auto& character_id : character_ids)
{
@@ -443,11 +445,7 @@ void DynamicZone::SaveInstanceMembersToDatabase(const std::unordered_set<uint32_
REPLACE INTO instance_list_player (id, charid) VALUES {};
), insert_values);
auto results = database.QueryDatabase(query);
if (!results.Success())
{
LogDynamicZones("Failed to save instance members to database");
}
database.QueryDatabase(query);
}
}