mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
lognoise: don't log sync packet contents if there are no clones to receive them
This commit is contained in:
parent
8873fbfee9
commit
64cf36a2b5
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue