diff --git a/hwe/lib.php b/hwe/lib.php index 63f3ca83..2556fbd9 100644 --- a/hwe/lib.php +++ b/hwe/lib.php @@ -54,5 +54,5 @@ function MessageBox($str) function LogText($prefix, $variable) { $text = sprintf('%s : %s'."\r\n", $prefix, TVarDumper::dump($variable)); - file_put_contents(ROOT.'/d_log/dbg_logs.txt', $text, FILE_APPEND); + file_put_contents(ROOT.'/d_log/'.UniqueConst::$serverName.'_dbg_logs.txt', $text, FILE_APPEND); } diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index c7d6830d..19b575d3 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -3065,14 +3065,6 @@ class GeneralAI } } - LogText('warUserGenerals,'.getNationStaticInfo($nationID)['name'].','.$this->general->getName(), array_map(function(General $general){ - return $general->getName(); - }, $userWarGenerals)); - - LogText('userGenerals,'.getNationStaticInfo($nationID)['name'].','.$this->general->getName(), array_map(function(General $general){ - return $general->getName(); - }, $userGenerals)); - $this->nationGenerals = $nationGenerals; $this->userGenerals = $userGenerals; $this->userCivilGenerals = $userCivilGenerals;