Skip to content

Commit

Permalink
Update helpers.php
Browse files Browse the repository at this point in the history
Fixed function_exists() check
  • Loading branch information
TiiFuchs authored Mar 20, 2022
1 parent 69d2162 commit 7313fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ function env($key, $default = null) {
}
}

if (! function_exists('info')) {
if (! function_exists('logInfo')) {
function logInfo($message) {
$message = date("[Y-m-d H:i:s] ") . $message . PHP_EOL;
file_put_contents(__DIR__ . '/logs/php-telegram-bot.log', $message, FILE_APPEND);
}
}
}

0 comments on commit 7313fdf

Please sign in to comment.