From c9d4b068c254bd58e6da5d6349ab8b7ae96b6054 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 9 Nov 2024 12:49:10 +0100 Subject: remove extensiv logging to syslog --- Zotlabs/Daemon/Notifier.php | 7 ------- Zotlabs/Lib/Libzot.php | 13 +------------ Zotlabs/Lib/QueueWorker.php | 2 +- Zotlabs/Module/Item.php | 5 ----- 4 files changed, 2 insertions(+), 25 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php index 485299187..e74d04231 100644 --- a/Zotlabs/Daemon/Notifier.php +++ b/Zotlabs/Daemon/Notifier.php @@ -431,9 +431,6 @@ class Notifier { return; } - hz_syslog(print_r(self::$encoded_item['type'], true)); - hz_syslog(print_r(self::$recipients, true)); - // logger('recipients: ' . print_r(self::$recipients,true), LOGGER_NORMAL, LOG_DEBUG); if (!count(self::$env_recips)) { @@ -592,10 +589,6 @@ class Notifier { foreach ($dhubs as $hub) { - hz_syslog('notifier_hub: ' . $hub['hubloc_url'], LOGGER_DEBUG); - hz_syslog(print_r($target_item['id'], true)); - hz_syslog(print_r($target_item['verb'], true)); - if ($hub['hubloc_network'] !== 'zot6') { $narr = [ 'channel' => self::$channel, diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 7eabc074f..be2305c04 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -1155,7 +1155,7 @@ class Libzot { && array_key_exists('actor', $AS->obj) && !empty($AS->tgt)) { - hz_syslog('relayed collection operation', LOGGER_DEBUG); + logger('relayed collection operation', LOGGER_DEBUG); $is_collection_operation = true; $original_id = $AS->id; @@ -1330,11 +1330,6 @@ class Libzot { $relay = (($env['type'] === 'response') ? true : false); - if($is_collection_operation) - hz_syslog('col'); - else - hz_syslog('not col'); - $result = self::process_delivery($env['sender'], $AS, $item, $deliveries, $relay, false, $message_request, false, $is_collection_operation); Activity::init_background_fetch($env['sender']); @@ -1862,12 +1857,6 @@ class Libzot { } } - if($is_collection_operation) - hz_syslog('col1'); - else - hz_syslog('not col1'); - - // This is used to fetch allow/deny rules if either the sender // or owner is a connection. post_is_importable() evaluates all of them $abook = q("select * from abook where abook_channel = %d and ( abook_xchan = '%s' OR abook_xchan = '%s' )", diff --git a/Zotlabs/Lib/QueueWorker.php b/Zotlabs/Lib/QueueWorker.php index 4242ec8e7..9e28999c9 100644 --- a/Zotlabs/Lib/QueueWorker.php +++ b/Zotlabs/Lib/QueueWorker.php @@ -284,7 +284,7 @@ class QueueWorker { $jobs++; - hz_syslog("Workinfo: " . $workitem[0]['workerq_data'], LOGGER_DEBUG); + logger("Workinfo: " . $workitem[0]['workerq_data'], LOGGER_DEBUG); $workinfo = json_decode($workitem[0]['workerq_data'], true); $argv = $workinfo['argv']; diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 039468ad7..bff092ec4 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -1308,11 +1308,6 @@ class Item extends Controller { $post = item_store($datarray, $execflag); - hz_syslog('Item: ' . print_r($post['item_id'], true)); - hz_syslog('Item mid: ' . print_r($post['item']['mid'], true)); - hz_syslog('Item appr: ' . print_r($post['approval_id'], true)); - hz_syslog('Item appr mid: ' . print_r($post['approval']['mid'], true)); - if ($post['success']) { $this->add_listeners($datarray); } -- cgit v1.2.3