FIX: new line exception.log

This commit is contained in:
Juan Pablo Vial
2025-06-30 11:44:05 -04:00
parent 7f8bd607e3
commit 1fa152c07f

View File

@ -168,7 +168,7 @@ class Login
$login = $this->repository->fetchActiveByUser($user->id);
$this->logout($login->user);
} catch (PDOException | EmptyResult $exception) {
error_log($exception, 3, '/logs/exception.log');
error_log($exception.PHP_EOL, 3, '/logs/exception.log');
}
try {
@ -185,7 +185,7 @@ class Login
$this->saveCookie($selector, $token, $login->dateTime->add(new DateInterval("PT{$this->max_login_time}H")));
return true;
} catch (PDOException | Exception $exception) {
error_log($exception, 3, '/logs/exception.log');
error_log($exception.PHP_EOL, 3, '/logs/exception.log');
return false;
}
}