Improve logging in ContactManager to include relationship details and adjust relationship parameter handling in SocialClient
This commit is contained in:
parent
604f75f5c8
commit
3d9f5fc6b1
2 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@
|
|||
}
|
||||
|
||||
$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
|
||||
{
|
||||
|
|
|
@ -212,7 +212,7 @@
|
|||
return (bool)$this->sendRequest(
|
||||
new RpcRequest(StandardMethods::ADDRESS_BOOK_ADD_CONTACT, parameters: [
|
||||
'peer' => $peer,
|
||||
'relationship' => $relationship?->value
|
||||
'relationship' => $relationship
|
||||
])
|
||||
)->getResponse()->getResult();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue