mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
remove extensiv logging to syslog
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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' )",
|
||||
|
||||
@@ -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'];
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -29,9 +29,6 @@ function node2bbcodesub(&$doc, $oldnode, $attributes, $startbb, $endbb)
|
||||
|
||||
foreach ($list as $oldNode) {
|
||||
|
||||
if ($oldnode == 'li')
|
||||
hz_syslog(print_r($oldNode,true));
|
||||
|
||||
$attr = array();
|
||||
if ($oldNode->attributes->length)
|
||||
foreach ($oldNode->attributes as $attribute)
|
||||
|
||||
@@ -525,8 +525,6 @@ function post_activity_item($arr, $allow_code = false, $deliver = true, $channel
|
||||
|
||||
$post = item_store($arr, $allow_code, $deliver, $addAndSync);
|
||||
|
||||
hz_syslog('post_activity_item: ' . print_r($post['item_id'], true));
|
||||
|
||||
if (!$post['success']) {
|
||||
return $ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user