diff --git a/agente/funcoesAgente.php b/agente/funcoesAgente.php index bfbb0687..07b5a638 100644 --- a/agente/funcoesAgente.php +++ b/agente/funcoesAgente.php @@ -457,7 +457,7 @@ function RegistraLogAgente($metodo, $msg, $ex = null) { $log[] = sprintf("MsgSys: %s", GetErrorLast('', 1)); } $log[] = "****************************** FIM ****************************/"; - $file = sprintf("agentesrt%s_%s.log", ($matricula ? "_{$matricula}_" : ""), Date("Ym")); + $file = sprintf("agentesrt_%s.log", ($matricula ? "$matricula" : "null")); RegistraLog($log, $file); }