diff options
author | 2018-07-05 08:28:24 -0700 | |
---|---|---|
committer | 2018-07-06 22:22:13 -0700 | |
commit | 57fc6696d44df48c6a72fd0c1e08741e11f048e8 (patch) | |
tree | 0b422d8f3c7af096d84b1a4e0b3d922300ca7cda | |
parent | gkeys actions.py: Additional debug logging (diff) | |
download | gentoo-keys-57fc6696d44df48c6a72fd0c1e08741e11f048e8.tar.gz gentoo-keys-57fc6696d44df48c6a72fd0c1e08741e11f048e8.tar.bz2 gentoo-keys-57fc6696d44df48c6a72fd0c1e08741e11f048e8.zip |
gkeys keyhandler: Additional debug logging
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rw-r--r-- | gkeys/gkeys/keyhandler.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gkeys/gkeys/keyhandler.py b/gkeys/gkeys/keyhandler.py index 0a02c22..06f4b86 100644 --- a/gkeys/gkeys/keyhandler.py +++ b/gkeys/gkeys/keyhandler.py @@ -75,10 +75,11 @@ class KeyHandler(object): def determine_keys(self, args, default_cat=None): + self.logger.debug(_unicode("KeyHandler: determine_keys; args.category = %s"), args.category or default_cat) seeds = self.seedhandler.load_category(args.category or default_cat) keyring = self.config.get_key('keyring') catdir = os.path.join(keyring, args.category) - self.logger.debug(_unicode("KeyHandler: determine_keys; catdir = %s") % catdir) + self.logger.debug(_unicode("KeyHandler: determine_keys; catdir = %s"), catdir) kwargs = self.seedhandler.build_gkeydict(args) return (catdir, seeds.list(**kwargs)) @@ -88,10 +89,12 @@ class KeyHandler(object): results = {} search_args = [x for x in KEY_OPTIONS if getattr(args, x)] if args.category: + self.logger.debug(_unicode("KeyHandler: key_search; args.category = %s"), args.category) self.seedhandler.load_category(args.category) results[args.category] = self.seedhandler.key_search(args, search_args) else: for cat in sorted(self.config.get_key('seeds')): + self.logger.debug(_unicode("KeyHandler: key_search; cat = %s"), cat) self.seedhandler.load_category(cat) found = self.seedhandler.key_search(args, search_args) if found: |