Add GKEY field name to error output
authorBrian Dolbec <dolsen@gentoo.org>
Sun, 23 Jun 2013 00:36:31 +0000 (17:36 -0700)
committerBrian Dolbec <dolsen@gentoo.org>
Sun, 23 Jun 2013 04:30:59 +0000 (21:30 -0700)
gkeyldap/cli.py

index dae772a758fba6d0d3cceb9f105a59c8e17f8487..06da0f3d8c9e51017e874a732b9abb42cb89eed2 100644 (file)
@@ -257,8 +257,8 @@ class Main(object):
                         %(field, info['uid'][0], info['cn'][0]))
                 keyinfo.append(value)
             except KeyError:
-                logger.error("Missing %s for %s, %s"
-                    %(field, info['uid'][0], info['cn'][0]))
+                logger.error("Missing %s (%s) for %s, %s"
+                    %(field, x, info['uid'][0], info['cn'][0]))
                 keyinfo.append(None)
         return keyinfo