mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 15:41:30 +00:00
QueryServ adjustments
This commit is contained in:
parent
0110755c47
commit
9bfe45ddbd
@ -66,16 +66,16 @@ int main() {
|
|||||||
</qsdatabase>
|
</qsdatabase>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Log.Out(Logs::Detail, Logs::QS_Server, "Starting EQEmu QueryServ.");
|
Log.Out(Logs::General, Logs::QS_Server, "Starting EQEmu QueryServ.");
|
||||||
if (!queryservconfig::LoadConfig()) {
|
if (!queryservconfig::LoadConfig()) {
|
||||||
Log.Out(Logs::Detail, Logs::QS_Server, "Loading server configuration failed.");
|
Log.Out(Logs::General, Logs::QS_Server, "Loading server configuration failed.");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
Config = queryservconfig::get();
|
Config = queryservconfig::get();
|
||||||
WorldShortName = Config->ShortName;
|
WorldShortName = Config->ShortName;
|
||||||
|
|
||||||
Log.Out(Logs::Detail, Logs::QS_Server, "Connecting to MySQL...");
|
Log.Out(Logs::General, Logs::QS_Server, "Connecting to MySQL...");
|
||||||
|
|
||||||
/* MySQL Connection */
|
/* MySQL Connection */
|
||||||
if (!qs_database.Connect(
|
if (!qs_database.Connect(
|
||||||
@ -84,7 +84,7 @@ int main() {
|
|||||||
Config->QSDatabasePassword.c_str(),
|
Config->QSDatabasePassword.c_str(),
|
||||||
Config->QSDatabaseDB.c_str(),
|
Config->QSDatabaseDB.c_str(),
|
||||||
Config->QSDatabasePort)) {
|
Config->QSDatabasePort)) {
|
||||||
Log.Out(Logs::Detail, Logs::World_Server, "Cannot continue without a database connection.");
|
Log.Out(Logs::General, Logs::QS_Server, "Cannot continue without a database connection.");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,11 +93,11 @@ int main() {
|
|||||||
database.LoadLogSysSettings(Log.log_settings);
|
database.LoadLogSysSettings(Log.log_settings);
|
||||||
|
|
||||||
if (signal(SIGINT, CatchSignal) == SIG_ERR) {
|
if (signal(SIGINT, CatchSignal) == SIG_ERR) {
|
||||||
Log.Out(Logs::Detail, Logs::QS_Server, "Could not set signal handler");
|
Log.Out(Logs::General, Logs::QS_Server, "Could not set signal handler");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (signal(SIGTERM, CatchSignal) == SIG_ERR) {
|
if (signal(SIGTERM, CatchSignal) == SIG_ERR) {
|
||||||
Log.Out(Logs::Detail, Logs::QS_Server, "Could not set signal handler");
|
Log.Out(Logs::General, Logs::QS_Server, "Could not set signal handler");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user