From 61b46f1a3e3291ec8b3ea0251d5165b8eb7b08d7 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 25 Oct 2023 13:05:56 +0000 Subject: add stats logging to zotfinger --- Zotlabs/Lib/Zotfinger.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Zotlabs/Lib') diff --git a/Zotlabs/Lib/Zotfinger.php b/Zotlabs/Lib/Zotfinger.php index fa57ab56d..16ed772c0 100644 --- a/Zotlabs/Lib/Zotfinger.php +++ b/Zotlabs/Lib/Zotfinger.php @@ -35,7 +35,11 @@ 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)); -- cgit v1.2.3