Skip to content

Commit

Permalink
Fix for Loginserver log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Akkadius committed Apr 5, 2017
1 parent 75950b0 commit 9161921
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions common/eqemu_logsys.cpp
Expand Up @@ -104,6 +104,15 @@ void EQEmuLogSys::LoadLogSettingsDefaults()
log_settings[Logs::MySQLError].log_to_console = Logs::General;
log_settings[Logs::Login_Server].log_to_console = Logs::General;

/* Set Category enabled status on defaults */
log_settings[Logs::World_Server].is_category_enabled = 1;
log_settings[Logs::Zone_Server].is_category_enabled = 1;
log_settings[Logs::QS_Server].is_category_enabled = 1;
log_settings[Logs::UCS_Server].is_category_enabled = 1;
log_settings[Logs::Crash].is_category_enabled = 1;
log_settings[Logs::MySQLError].is_category_enabled = 1;
log_settings[Logs::Login_Server].is_category_enabled = 1;

/* Declare process file names for log writing
If there is no process_file_name declared, no log file will be written, simply
*/
Expand Down
1 change: 1 addition & 0 deletions loginserver/main.cpp
Expand Up @@ -45,6 +45,7 @@ int main()
LogSys.LoadLogSettingsDefaults();

LogSys.log_settings[Logs::Error].log_to_console = Logs::General;
LogSys.log_settings[Logs::Error].is_category_enabled = 1;

Log(Logs::General, Logs::Login_Server, "Logging System Init.");

Expand Down
2 changes: 2 additions & 0 deletions zone/mob_ai.cpp
Expand Up @@ -1432,6 +1432,7 @@ void Mob::AI_Process() {
}
}
}
/* Entity has been assigned another entity to follow */
else if (GetFollowID())
{
Mob* follow = entity_list.GetMob(GetFollowID());
Expand Down Expand Up @@ -1475,6 +1476,7 @@ void Mob::AI_Process() {
minLastFightingDelayMoving = 0;
maxLastFightingDelayMoving = 0;
}
/* All normal NPC pathing */
CastToNPC()->AI_DoMovement();
}
}
Expand Down

0 comments on commit 9161921

Please sign in to comment.