Skip to content

Commit

Permalink
Merge pull request openwallet-foundation#2853 from jamshale/feat/2846
Browse files Browse the repository at this point in the history
Change did <--> verkey logging on connections
  • Loading branch information
dbluhm authored Mar 22, 2024
2 parents 6da07c6 + 555ec9f commit a79c5c7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions aries_cloudagent/connections/base_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
from ..utils.multiformats import multibase, multicodec
from ..wallet.base import BaseWallet
from ..wallet.crypto import create_keypair, seed_to_did
from ..wallet.did_info import DIDInfo, KeyInfo, INVITATION_REUSE_KEY
from ..wallet.did_info import INVITATION_REUSE_KEY, DIDInfo, KeyInfo
from ..wallet.did_method import PEER2, PEER4, SOV
from ..wallet.error import WalletNotFoundError
from ..wallet.key_type import ED25519
Expand Down Expand Up @@ -967,14 +967,12 @@ async def resolve_inbound_connection(
"""

receipt.sender_did = None
if receipt.sender_verkey:
try:
receipt.sender_did = await self.find_did_for_key(receipt.sender_verkey)
except StorageNotFoundError:
self._logger.warning(
"No corresponding DID found for sender verkey: %s",
receipt.sender_verkey,
)
pass

if receipt.recipient_verkey:
try:
Expand All @@ -993,7 +991,7 @@ async def resolve_inbound_connection(
receipt.recipient_verkey,
)
except WalletNotFoundError:
self._logger.warning(
self._logger.debug(
"No corresponding DID found for recipient verkey: %s",
receipt.recipient_verkey,
)
Expand Down

0 comments on commit a79c5c7

Please sign in to comment.