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