diff options
author | Mario <mario@mariovavti.com> | 2023-11-25 17:12:28 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-11-25 17:12:28 +0100 |
commit | 0fd8e02a884a2b040dca62ab5d9674db5f6a070b (patch) | |
tree | 586ee43f32f6f14368c09026f21dcd3244ea24b6 /Zotlabs/Lib/Zotfinger.php | |
parent | 82e704ec5b107823c09f1387e9091adee53a4c2d (diff) | |
parent | 55c4bfb67009c598f25b1a8189604bfffa73dfbb (diff) | |
download | volse-hubzilla-0fd8e02a884a2b040dca62ab5d9674db5f6a070b.tar.gz volse-hubzilla-0fd8e02a884a2b040dca62ab5d9674db5f6a070b.tar.bz2 volse-hubzilla-0fd8e02a884a2b040dca62ab5d9674db5f6a070b.zip |
Merge branch '8.8RC'8.8
Diffstat (limited to 'Zotlabs/Lib/Zotfinger.php')
-rw-r--r-- | Zotlabs/Lib/Zotfinger.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Zotfinger.php b/Zotlabs/Lib/Zotfinger.php index fa57ab56d..ccf64d6d1 100644 --- a/Zotlabs/Lib/Zotfinger.php +++ b/Zotlabs/Lib/Zotfinger.php @@ -35,9 +35,13 @@ class Zotfinger { $result = []; $redirects = 0; + + $start_timestamp = microtime(true); $x = z_post_url($resource,$data,$redirects, [ 'headers' => $h ] ); + logger('logger_stats_data cmd:Zotfinger' . ' start:' . $start_timestamp . ' ' . 'end:' . microtime(true) . ' meta:' . $resource . '#' . random_string(16)); + btlogger('Zotfinger'); - logger('fetch: ' . print_r($x,true)); + logger('fetch: ' . print_r($x,true), LOGGER_DATA); if (in_array(intval($x['return_code']), [ 404, 410 ]) && $recurse) { @@ -74,7 +78,7 @@ class Zotfinger { $result['data'] = json_decode(Crypto::unencapsulate($result['data'],get_config('system','prvkey')),true); } - logger('decrypted: ' . print_r($result,true)); + logger('decrypted: ' . print_r($result,true), LOGGER_DATA); return $result; } |