From ea77043aaf0419f065ab47cb38e98203918f3465 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 14 Oct 2020 08:53:12 +0000 Subject: more logging --- Zotlabs/Lib/Activity.php | 2 +- include/zot.php | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 08e5ffaca..204d19480 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -3199,7 +3199,7 @@ class Activity { ); if ($r) { $r = Libzot::zot_record_preferred($r); - logger('find_best_identity: ' . $xchan . ' > ' . $r['hubloc_hash']); + hz_syslog('find_best_identity: ' . $xchan . ' > ' . $r['hubloc_hash']); return $r['hubloc_hash']; } } diff --git a/include/zot.php b/include/zot.php index 1a0ebdacb..4fa8bf14c 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1964,8 +1964,10 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $ dbesc($best_owner_xchan) ); - if($ab) + if($ab) { + logger('rewrite owner: ' . $arr['owner_xchan'] . ' > ' . $best_owner_xchan); $arr['owner_xchan'] = $best_owner_xchan; + } } $best_author_xchan = find_best_zot_identity($arr['author_xchan']); @@ -1975,9 +1977,10 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $ dbesc($best_author_xchan) ); - if($ab_author) + if($ab_author) { + logger('rewrite author: ' . $arr['author_xchan'] . ' > ' . $best_author_xchan); $arr['author_xchan'] = $best_author_xchan; - + } $abook = (($ab) ? $ab[0] : null); @@ -5382,7 +5385,7 @@ function find_best_zot_identity($xchan) { ); if ($r) { $r = Libzot::zot_record_preferred($r); - logger('find_best_zot_identity: ' . $xchan . ' > ' . $r['hubloc_hash']); + hz_syslog('find_best_zot_identity: ' . $xchan . ' > ' . $r['hubloc_hash']); return $r['hubloc_hash']; } } -- cgit v1.2.3 From 522b92128f076114da8f25e18151387d9012d33c Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 14 Oct 2020 12:32:18 +0000 Subject: use logger for logging --- Zotlabs/Lib/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 204d19480..08e5ffaca 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -3199,7 +3199,7 @@ class Activity { ); if ($r) { $r = Libzot::zot_record_preferred($r); - hz_syslog('find_best_identity: ' . $xchan . ' > ' . $r['hubloc_hash']); + logger('find_best_identity: ' . $xchan . ' > ' . $r['hubloc_hash']); return $r['hubloc_hash']; } } -- cgit v1.2.3