mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
ff1286f365
commit
696393bd86
2 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ error_reporting(E_ALL);
|
|||
if (php_sapi_name() !== 'cli') {
|
||||
die('Command Line only');
|
||||
}
|
||||
|
||||
$global['printLogs'] = 1;
|
||||
// Example usage
|
||||
$filePath = Video::getStoragePath() . 'mysqldump-' . date('YmdHis') . '.sql';
|
||||
$extraOptions = []; // You can add custom options here if needed
|
||||
|
|
|
@ -89,9 +89,9 @@ function _error_log($message, $type = 0, $doNotRepeat = false)
|
|||
if (!is_string($message)) {
|
||||
$message = json_encode($message);
|
||||
}
|
||||
if (isSchedulerRun() || !empty($global['printLogs'])) {
|
||||
//echo $message . PHP_EOL;
|
||||
//return false;
|
||||
if (!empty($global['printLogs'])) {
|
||||
echo $message . PHP_EOL;
|
||||
return false;
|
||||
}
|
||||
if (empty($doNotRepeat)) {
|
||||
// do not log it too many times when you are using HLS format, other wise it will fill the log file with the same error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue