aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Zotfinger.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-10-25 13:05:56 +0000
committerMario <mario@mariovavti.com>2023-10-25 13:05:56 +0000
commit61b46f1a3e3291ec8b3ea0251d5165b8eb7b08d7 (patch)
tree52c9928f0a7df0c64b073e256f48f778e161159b /Zotlabs/Lib/Zotfinger.php
parent8ea6ead08ad56c1698e870f694cafe4ccb7bab2d (diff)
downloadvolse-hubzilla-61b46f1a3e3291ec8b3ea0251d5165b8eb7b08d7.tar.gz
volse-hubzilla-61b46f1a3e3291ec8b3ea0251d5165b8eb7b08d7.tar.bz2
volse-hubzilla-61b46f1a3e3291ec8b3ea0251d5165b8eb7b08d7.zip
add stats logging to zotfinger
Diffstat (limited to 'Zotlabs/Lib/Zotfinger.php')
-rw-r--r--Zotlabs/Lib/Zotfinger.php4
1 files changed, 4 insertions, 0 deletions
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));