[Bug Fix] Remove unnecessary log messages. (#2642)

This commit is contained in:
Alex King 2022-12-14 17:31:21 -05:00 committed by GitHub
parent 337dc54eb9
commit 89ba1270d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1007,11 +1007,15 @@ void Client::LoadZoneFlags() {
);
auto results = database.QueryDatabase(query);
if (!results.Success() || !results.RowCount()) {
if (!results.Success()) {
LogError("MySQL Error while trying to load zone flags for [{}]: [{}]", GetName(), results.ErrorMessage().c_str());
return;
}
if (!results.RowCount()) {
return;
}
zone_flags.clear();
for (auto row : results) {
@ -1130,8 +1134,7 @@ void Client::LoadPEQZoneFlags() {
CharacterID()
)
);
if (l.empty() || !l[0].id){
LogError("MySQL Error while trying to load PEQZone flags for [{}].", GetName());
if (l.empty()) {
return;
}