From 8de81f25d32407c8453e65dd531721fd52847fed Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 4 Nov 2023 11:01:57 +0700 Subject: [PATCH] Updated --- bt/announce.php | 2 +- bt/includes/init_tr.php | 2 +- bt/scrape.php | 2 +- common.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bt/announce.php b/bt/announce.php index 697238d2..a6914bf6 100644 --- a/bt/announce.php +++ b/bt/announce.php @@ -169,7 +169,7 @@ function drop_fast_announce ($lp_info) function msg_die ($msg) { - if (DBG_LOG_TRACKER) dbg_log($msg, '!die-' . $msg . '_' . time()); + if (DBG_LOG_TRACKER) dbg_log(' ', '!die-'. clean_filename($msg)); $output = bencode(array( # 'interval' => (int) 1800, diff --git a/bt/includes/init_tr.php b/bt/includes/init_tr.php index 6e3851bd..8354097f 100644 --- a/bt/includes/init_tr.php +++ b/bt/includes/init_tr.php @@ -42,7 +42,7 @@ function silent_exit () function error_exit ($msg = '') { - if (DBG_LOG_TRACKER) dbg_log($msg, '!err-' . $msg . '_' . time()); + if (DBG_LOG_TRACKER) dbg_log(' ', '!err-'. clean_filename($msg)); silent_exit(); diff --git a/bt/scrape.php b/bt/scrape.php index 688396dd..2f678f12 100644 --- a/bt/scrape.php +++ b/bt/scrape.php @@ -21,7 +21,7 @@ $info_hash = $_GET['info_hash']; function msg_die ($msg) { - if (DBG_LOG_TRACKER) dbg_log($msg, '!die-' . $msg . '_' . time()); + if (DBG_LOG_TRACKER) dbg_log(' ', '!die-'. clean_filename($msg)); $output = bencode(array( 'min interval' => (int) 1800, diff --git a/common.php b/common.php index 56e7dac8..e5b1ba27 100644 --- a/common.php +++ b/common.php @@ -475,7 +475,7 @@ function dbg_log ($str, $file) { if (!DBG_LOG_TRACKER && !DBG_LOG) return false; $dir = (defined('IN_TRACKER') ? 'dbg_tr/' : 'dbg_bb/') . date('m-d_H') .'/'; - return bb_log($str, $dir . clean_filename($file)); + return bb_log($str, $dir . clean_filename($file) . '_' . time()); } function log_get ($file = '', $prepend_str = false)