mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-06 02:02:25 +00:00
Remove some old MySQL logging for errors
This commit is contained in:
parent
9546023101
commit
45560f6654
@ -110,10 +110,6 @@ MySQLRequestResult DBcore::QueryDatabase(const char* query, uint32 querylen, boo
|
|||||||
char *errorBuffer = new char[MYSQL_ERRMSG_SIZE];
|
char *errorBuffer = new char[MYSQL_ERRMSG_SIZE];
|
||||||
snprintf(errorBuffer, MYSQL_ERRMSG_SIZE, "#%i: %s", mysql_errno(&mysql), mysql_error(&mysql));
|
snprintf(errorBuffer, MYSQL_ERRMSG_SIZE, "#%i: %s", mysql_errno(&mysql), mysql_error(&mysql));
|
||||||
|
|
||||||
#ifdef _EQDEBUG
|
|
||||||
std::cout << "DB Query Error #" << mysql_errno(&mysql) << ": " << mysql_error(&mysql) << std::endl;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Implement Logging at the Root */
|
/* Implement Logging at the Root */
|
||||||
if (mysql_errno(&mysql) > 0 && strlen(query) > 0){
|
if (mysql_errno(&mysql) > 0 && strlen(query) > 0){
|
||||||
Log.Out(Logs::General, Logs::MySQLError, "%i: %s \n %s", mysql_errno(&mysql), mysql_error(&mysql), query);
|
Log.Out(Logs::General, Logs::MySQLError, "%i: %s \n %s", mysql_errno(&mysql), mysql_error(&mysql), query);
|
||||||
|
|||||||
@ -113,7 +113,6 @@ void CatchSignal(int sig_num);
|
|||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
RegisterExecutablePlatform(ExePlatformWorld);
|
RegisterExecutablePlatform(ExePlatformWorld);
|
||||||
Log.LoadLogSettingsDefaults();
|
|
||||||
set_exception_handler();
|
set_exception_handler();
|
||||||
|
|
||||||
/* Database Version Check */
|
/* Database Version Check */
|
||||||
@ -183,6 +182,9 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
guild_mgr.SetDatabase(&database);
|
guild_mgr.SetDatabase(&database);
|
||||||
|
|
||||||
|
Log.LoadLogSettingsDefaults();
|
||||||
|
database.LoadLogSysSettings(Log.log_settings);
|
||||||
|
|
||||||
if (argc >= 2) {
|
if (argc >= 2) {
|
||||||
char tmp[2];
|
char tmp[2];
|
||||||
if (strcasecmp(argv[1], "help") == 0 || strcasecmp(argv[1], "?") == 0 || strcasecmp(argv[1], "/?") == 0 || strcasecmp(argv[1], "-?") == 0 || strcasecmp(argv[1], "-h") == 0 || strcasecmp(argv[1], "-help") == 0) {
|
if (strcasecmp(argv[1], "help") == 0 || strcasecmp(argv[1], "?") == 0 || strcasecmp(argv[1], "/?") == 0 || strcasecmp(argv[1], "-?") == 0 || strcasecmp(argv[1], "-h") == 0 || strcasecmp(argv[1], "-help") == 0) {
|
||||||
@ -446,21 +448,13 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
//check for timeouts in other threads
|
//check for timeouts in other threads
|
||||||
timeout_manager.CheckTimeouts();
|
timeout_manager.CheckTimeouts();
|
||||||
|
|
||||||
loginserverlist.Process();
|
loginserverlist.Process();
|
||||||
|
|
||||||
console_list.Process();
|
console_list.Process();
|
||||||
|
|
||||||
zoneserver_list.Process();
|
zoneserver_list.Process();
|
||||||
|
|
||||||
launcher_list.Process();
|
launcher_list.Process();
|
||||||
|
|
||||||
UCSLink.Process();
|
UCSLink.Process();
|
||||||
|
|
||||||
QSLink.Process();
|
QSLink.Process();
|
||||||
|
|
||||||
LFPGroupList.Process();
|
LFPGroupList.Process();
|
||||||
|
|
||||||
adventure_manager.Process();
|
adventure_manager.Process();
|
||||||
|
|
||||||
if (InterserverTimer.Check()) {
|
if (InterserverTimer.Check()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user