Improve logging in ContactManager to include relationship details and adjust relationship parameter handling in SocialClient

This commit is contained in:
netkas 2025-03-25 14:02:10 -04:00
parent 604f75f5c8
commit 3d9f5fc6b1
Signed by: netkas
GPG key ID: 4D8629441B76E4CC
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@
} }
$uuid = UuidV4::v4()->toRfc4122(); $uuid = UuidV4::v4()->toRfc4122();
Logger::getLogger()->debug(sprintf('Creating new contact (%s) for %s as UUID %s', $contactAddress, $peerUuid, $uuid)); Logger::getLogger()->debug(sprintf('Creating new contact (%s) for %s with a relationship of %s as UUID %s', $contactAddress, $peerUuid, $relationship->value, $uuid));
try try
{ {

View file

@ -212,7 +212,7 @@
return (bool)$this->sendRequest( return (bool)$this->sendRequest(
new RpcRequest(StandardMethods::ADDRESS_BOOK_ADD_CONTACT, parameters: [ new RpcRequest(StandardMethods::ADDRESS_BOOK_ADD_CONTACT, parameters: [
'peer' => $peer, 'peer' => $peer,
'relationship' => $relationship?->value 'relationship' => $relationship
]) ])
)->getResponse()->getResult(); )->getResponse()->getResult();
} }