mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-02 17:53:51 +00:00
zone LoadLogSysSettings
This commit is contained in:
parent
44b65d1ee5
commit
0d2c396680
11
zone/net.cpp
11
zone/net.cpp
@ -115,8 +115,7 @@ extern void MapOpcodes();
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
RegisterExecutablePlatform(ExePlatformZone);
|
||||
logger.LoadLogSettings();
|
||||
logger.OnLogHookCallBackZone(&ClientLogs::ClientMessage);
|
||||
|
||||
set_exception_handler();
|
||||
|
||||
const char *zone_name;
|
||||
@ -149,8 +148,6 @@ int main(int argc, char** argv) {
|
||||
worldserver.SetLauncherName("NONE");
|
||||
}
|
||||
|
||||
|
||||
|
||||
logger.LogDebugType(EQEmuLogSys::Detail, EQEmuLogSys::Zone_Server, "Loading server configuration..");
|
||||
if (!ZoneConfig::LoadConfig()) {
|
||||
logger.Log(EQEmuLogSys::Error, "Loading server configuration failed.");
|
||||
@ -175,6 +172,12 @@ int main(int argc, char** argv) {
|
||||
logger.Log(EQEmuLogSys::Error, "Cannot continue without a database connection.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Register Log System and Settings */
|
||||
logger.LoadLogSettings();
|
||||
logger.OnLogHookCallBackZone(&ClientLogs::ClientMessage);
|
||||
database.LoadLogSysSettings(logger.log_settings);
|
||||
|
||||
guild_mgr.SetDatabase(&database);
|
||||
|
||||
GuildBanks = nullptr;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user