logging: add more DEBUG information

This commit is contained in:
Roman Zeyde
2017-10-21 17:58:22 +03:00
parent 7212b2fa37
commit 5f722f8ae1
3 changed files with 20 additions and 14 deletions

View File

@@ -18,6 +18,7 @@ def get_agent_sock_path(sp=subprocess):
"""Parse gpgconf output to find out GPG agent UNIX socket path."""
lines = sp.check_output(['gpgconf', '--list-dirs']).strip().split(b'\n')
dirs = dict(line.split(b':', 1) for line in lines)
log.debug('gpgconf --list-dirs: %s', dirs)
return dirs[b'agent-socket']