From e271049fada5b05a52911871ddf823133d718a90 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 20 Jan 2015 01:37:57 -0600 Subject: [PATCH] Remove Duplicative MySQL Error: Error in CreateLauncher query: %s --- common/database.cpp | 1 - common/shareddb.cpp | 1 - world/eql_config.cpp | 1 - 3 files changed, 3 deletions(-) diff --git a/common/database.cpp b/common/database.cpp index e300bf586..52850658e 100644 --- a/common/database.cpp +++ b/common/database.cpp @@ -137,7 +137,6 @@ uint32 Database::CheckLogin(const char* name, const char* password, int16* oStat if (!results.Success()) { - std::cerr << "Error in CheckLogin query '" << query << "' " << results.ErrorMessage() << std::endl; return 0; } diff --git a/common/shareddb.cpp b/common/shareddb.cpp index eec7dc0f5..14e43c6de 100644 --- a/common/shareddb.cpp +++ b/common/shareddb.cpp @@ -46,7 +46,6 @@ bool SharedDatabase::SetHideMe(uint32 account_id, uint8 hideme) std::string query = StringFormat("UPDATE account SET hideme = %i WHERE id = %i", hideme, account_id); auto results = QueryDatabase(query); if (!results.Success()) { - std::cerr << "Error in SetGMSpeed query '" << query << "' " << results.ErrorMessage() << std::endl; return false; } diff --git a/world/eql_config.cpp b/world/eql_config.cpp index d8b60d209..b8ce0dddb 100644 --- a/world/eql_config.cpp +++ b/world/eql_config.cpp @@ -73,7 +73,6 @@ EQLConfig *EQLConfig::CreateLauncher(const char *name, uint8 dynamic_count) { std::string query = StringFormat("INSERT INTO launcher (name, dynamics) VALUES('%s', %d)", namebuf, dynamic_count); auto results = database.QueryDatabase(query); if (!results.Success()) { - Log.Out(Logs::General, Logs::Error, "Error in CreateLauncher query: %s", results.ErrorMessage().c_str()); return nullptr; }