From: Matthew Exon Date: Thu, 29 Dec 2022 18:42:22 +0000 (+0100) Subject: Return network match failure in error message instead of logging X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=119be35a79788713d85cc1d255b98b0619cf5193;p=friendica.git Return network match failure in error message instead of logging --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index e928df7f63..bf90edcd4c 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2953,7 +2953,7 @@ class Contact } if (($network != '') && ($ret['network'] != $network)) { - Logger::notice('Expected network ' . $network . ' does not match actual network ' . $ret['network']); + $result['message'] = DI::l10n()->t('Expected network %s does not match actual network %s', $network, $ret['network']); return $result; }