mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
improve log: benc_resp()
This commit is contained in:
@@ -45,7 +45,9 @@ function block_browser()
|
||||
|
||||
function benc_resp($d)
|
||||
{
|
||||
do_log(nexus_json_encode($d));
|
||||
$logData = $d;
|
||||
unset($logData['peers'], $logData['peers6']);
|
||||
do_log(nexus_json_encode($logData));
|
||||
benc_resp_raw(\Rhilip\Bencode\Bencode::encode($d));
|
||||
}
|
||||
function benc_resp_raw($x) {
|
||||
|
||||
Reference in New Issue
Block a user