FIX: new line exception.log
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user