Implement PHP logging
This commit is contained in:
parent
79b0e647f5
commit
0e69468a5a
@ -64,7 +64,7 @@ trait Loop
|
|||||||
if (!file_exists($lockfile)) {
|
if (!file_exists($lockfile)) {
|
||||||
touch($lockfile);
|
touch($lockfile);
|
||||||
$lock = fopen('bot.lock', 'r+');
|
$lock = fopen('bot.lock', 'r+');
|
||||||
} else if (isset($GLOBALS['lock'])) (
|
} else if (isset($GLOBALS['lock'])) {
|
||||||
$try_locking = false;
|
$try_locking = false;
|
||||||
$lock = $GLOBALS['lock'];
|
$lock = $GLOBALS['lock'];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user