cleanup cli log add REQUEST_ID

This commit is contained in:
xiaomlove
2022-03-09 19:07:44 +08:00
parent cf7b962cc0
commit 72818ddbbf
2 changed files with 3 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ die('Hacking attempt!');
function printProgress($msg) {
$br = php_sapi_name() == 'cli' ? "\n" : "<br />";
echo sprintf("[%s] %s ... done!%s", date('Y-m-d H:i:s'), $msg, $br);
echo sprintf("[%s] [%s] %s ... done!%s", date('Y-m-d H:i:s'), REQUEST_ID, $msg, $br);
}
function torrent_promotion_expire($days, $type = 2, $targettype = 1){