mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:50:10 +00:00
Remove potential new lines in reported logger instances
- Thanks to @MrKaplan-lw for the investigative work
This commit is contained in:
parent
258476e14f
commit
0006d838f5
4 changed files with 4 additions and 7 deletions
|
@ -599,9 +599,7 @@ class Notify extends BaseRepository
|
||||||
DBA::insert('notify-threads', $fields);
|
DBA::insert('notify-threads', $fields);
|
||||||
|
|
||||||
$emailBuilder->setHeader('Message-ID', $message_id);
|
$emailBuilder->setHeader('Message-ID', $message_id);
|
||||||
$log_msg = "No previous notification found for this parent:\n" .
|
$this->logger->info('No previous notification found for this parent', ['parent' => $params['parent'], 'uid' => $params['uid']]);
|
||||||
" parent: {$params['parent']}\n" . " uid : {$params['uid']}\n";
|
|
||||||
$this->logger->info($log_msg);
|
|
||||||
} else {
|
} else {
|
||||||
// If not, just "follow" the thread.
|
// If not, just "follow" the thread.
|
||||||
$emailBuilder->setHeader('References', $message_id);
|
$emailBuilder->setHeader('References', $message_id);
|
||||||
|
|
|
@ -310,7 +310,7 @@ class Delivery
|
||||||
$atom = DFRN::entries($msgitems, $owner);
|
$atom = DFRN::entries($msgitems, $owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
DI::logger()->debug('Notifier entry: ' . $contact['url'] . ' ' . ($target_item_id ?? 'relocation') . ' entry: ' . $atom);
|
DI::logger()->debug('Notifier entry', ['url' => $contact['url'], 'target_item_id' => ($target_item_id ?? 'relocation'), 'entry' => $atom]);
|
||||||
|
|
||||||
$protocol = Post\DeliveryData::DFRN;
|
$protocol = Post\DeliveryData::DFRN;
|
||||||
|
|
||||||
|
|
|
@ -2790,7 +2790,7 @@ class Diaspora
|
||||||
*/
|
*/
|
||||||
public static function encodePrivateData(string $msg, array $user, array $contact, string $prvkey, string $pubkey): string
|
public static function encodePrivateData(string $msg, array $user, array $contact, string $prvkey, string $pubkey): string
|
||||||
{
|
{
|
||||||
DI::logger()->debug('Message: ' . $msg);
|
DI::logger()->debug('Diaspora message', ['msg' => $msg]);
|
||||||
|
|
||||||
// without a public key nothing will work
|
// without a public key nothing will work
|
||||||
if (!$pubkey) {
|
if (!$pubkey) {
|
||||||
|
|
|
@ -207,8 +207,7 @@ class Emailer
|
||||||
$hookdata['parameters']
|
$hookdata['parameters']
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->logger->debug('header ' . 'To: ' . $email->getToAddress() . '\n' . $messageHeader);
|
$this->logger->debug('Email message header', ['To' => $email->getToAddress(), 'messageHeader' => $messageHeader, 'return' => ($res) ? 'true' : 'false']);
|
||||||
$this->logger->debug('return value ' . (($res) ? 'true' : 'false'));
|
|
||||||
|
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue