diff options
author | 2018-07-05 08:31:20 -0700 | |
---|---|---|
committer | 2018-07-06 22:22:13 -0700 | |
commit | 33625064ee63796b6b02ca9f200d3d4ff1707ff9 (patch) | |
tree | ea9c752c278694fbfa00c0df5061f23d669ba6cd | |
parent | gkeys log.py: Reduce the frequency of new log files, add a timestamp message (diff) | |
download | gentoo-keys-33625064ee63796b6b02ca9f200d3d4ff1707ff9.tar.gz gentoo-keys-33625064ee63796b6b02ca9f200d3d4ff1707ff9.tar.bz2 gentoo-keys-33625064ee63796b6b02ca9f200d3d4ff1707ff9.zip |
gkeys lib.py: Additional debug logging
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rw-r--r-- | gkeys/gkeys/actions.py | 2 | ||||
-rw-r--r-- | gkeys/gkeys/lib.py | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py index e480613..2fe29fb 100644 --- a/gkeys/gkeys/actions.py +++ b/gkeys/gkeys/actions.py @@ -827,8 +827,6 @@ class Actions(ActionBase): climit = 60 else: climit = 0 - sig_path = None - get_sig = signature is not None self.logger.debug(_unicode("ACTIONS: _verify; supplied signature %s"), signature) if isurl: fetcher = Fetch(self.logger) diff --git a/gkeys/gkeys/lib.py b/gkeys/gkeys/lib.py index a8529f4..7928347 100644 --- a/gkeys/gkeys/lib.py +++ b/gkeys/gkeys/lib.py @@ -88,8 +88,8 @@ class GkeysGPG(GPG): def set_keydir(self, keydir, task, fingerprint=True, reset=True): - self.logger.debug("basedir: %s, keydir: %s" % (self.basedir, keydir)) self.keydir = pjoin(self.basedir, keydir) + self.logger.debug("GkeysGPG.set_keydir; keydir: %s, task: %s, self.keydir: %s" % (keydir, task, self.keydir)) self.task = task if reset: self.config.options['tasks'][task] = self.config.defaults['tasks'][task][:] @@ -98,7 +98,7 @@ class GkeysGPG(GPG): task_value.append('--fingerprint') task_value.extend(['--homedir', self.keydir]) self.config.options['tasks'][task].extend(task_value) - self.logger.debug("set_keydir: New task options: %s" %str(self.config.options['tasks'][task])) + self.logger.debug("GkeysGPG.set_keydir; New task options: %s" %str(self.config.options['tasks'][task])) return @@ -147,6 +147,8 @@ class GkeysGPG(GPG): fingerprint, gkey.name)) result = self.runGPG(task='recv-keys', inputfile=fingerprint) self.logger.info('GPG return code: ' + str(result.returncode)) + self.logger.debug("LIB: add_key; fingerprint: %s. type: %s", fingerprint, type(fingerprint)) + self.logger.debug("LIB: add_key; gkey.keys: %s. type: %s", gkey.keys, [type(key) for key in gkey.keys]) if result.fingerprint in gkey.keys: result.failed = False message = "Fingerprints match... Import successful: " @@ -254,6 +256,7 @@ class GkeysGPG(GPG): self.logger.debug("LIB: list_keys(), invalid keydir parameter: %s" % str(keydir)) return [] + self.logger.debug("LIB: list_keys(), keydir parameter: %s"% str(keydir)) if fingerprint: task = 'list-key' target = fingerprint |