chore: some more logging
This commit is contained in:
parent
09db862ed8
commit
e190694595
1 changed files with 4 additions and 0 deletions
|
|
@ -37,6 +37,9 @@ class KeyRequest:
|
|||
self.path = key_parts[:] if len(key_parts) > 1 else None
|
||||
self.entry_name = key_parts[-1]
|
||||
|
||||
def __repr__(self):
|
||||
return f"KeyRequest(field_name={self.field_name}, path={self.path}, entry_name={self.entry_name})"
|
||||
|
||||
@injectable(singleton=True)
|
||||
class Passwords:
|
||||
def __init__(self):
|
||||
|
|
@ -61,6 +64,7 @@ class Passwords:
|
|||
output = {}
|
||||
for k in keys:
|
||||
request = KeyRequest(k)
|
||||
logger.debug(f"Parsed request: {request}")
|
||||
with self.open() as kp:
|
||||
logger.debug(f"KDBX accessed for key: {k}")
|
||||
kp_entry = kp.find_entries(path=request.path, first=True, title=request.entry_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue