diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-23 19:25:42 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-23 19:25:42 -0700 |
commit | 64cf36a2b5dc314728fbb262471f1dd7b0ad2d96 (patch) | |
tree | 2a1f21d99b34ec41c47dfebabcdd4fed440d2ae6 /include/zot.php | |
parent | 8873fbfee9a8c0437fa1acdf1588aeb3fd3e7681 (diff) | |
download | volse-hubzilla-64cf36a2b5dc314728fbb262471f1dd7b0ad2d96.tar.gz volse-hubzilla-64cf36a2b5dc314728fbb262471f1dd7b0ad2d96.tar.bz2 volse-hubzilla-64cf36a2b5dc314728fbb262471f1dd7b0ad2d96.zip |
lognoise: don't log sync packet contents if there are no clones to receive them
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php index 3e2a66734..343bc8ad8 100644 --- a/include/zot.php +++ b/include/zot.php @@ -2965,8 +2965,6 @@ function build_sync_packet($uid = 0, $packet = null, $groups_changed = false) { logger('build_sync_packet'); - if($packet) - logger('packet: ' . print_r($packet, true),LOGGER_DATA, LOG_DEBUG); $keychange = (($packet && array_key_exists('keychange',$packet)) ? true : false); if($keychange) { @@ -3033,6 +3031,9 @@ function build_sync_packet($uid = 0, $packet = null, $groups_changed = false) { $env_recips = array(); $env_recips[] = array('guid' => $r[0]['xchan_guid'],'guid_sig' => $r[0]['xchan_guid_sig']); + if($packet) + logger('packet: ' . print_r($packet, true),LOGGER_DATA, LOG_DEBUG); + $info = (($packet) ? $packet : array()); $info['type'] = 'channel_sync'; $info['encoding'] = 'red'; // note: not zot, this packet is very platform specific |