mirror of
https://github.com/romanz/amodem.git
synced 2026-04-17 19:55:58 +08:00
logging: add more DEBUG information
This commit is contained in:
@@ -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']
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user