diff options
author | Simo Sorce <simo@redhat.com> | 2015-10-20 18:26:52 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-10-23 14:10:56 -0400 |
commit | dd552a022da0dbea04d3eb210b1df0ea33d4c686 (patch) | |
tree | b9bc73fff3ea1ce558f3fc59222d172a88207e1c | |
parent | 264b65d30c092ba5ae13b28df3402b90ae583b64 (diff) | |
download | custodia-dd552a022da0dbea04d3eb210b1df0ea33d4c686.tar.gz custodia-dd552a022da0dbea04d3eb210b1df0ea33d4c686.tar.xz custodia-dd552a022da0dbea04d3eb210b1df0ea33d4c686.zip |
Add some debug loggig in Secrets
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Christian Heimes <cheimes@redhat.com>
-rw-r--r-- | custodia/secrets.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/custodia/secrets.py b/custodia/secrets.py index b598667..aeaa560 100644 --- a/custodia/secrets.py +++ b/custodia/secrets.py @@ -17,6 +17,9 @@ from custodia.store.interface import CSStoreExists from custodia.store.sqlite import SqliteStore +logger = logging.getLogger(__name__) + + class Secrets(HTTPConsumer): def __init__(self, *args, **kwargs): @@ -58,6 +61,9 @@ class Secrets(HTTPConsumer): except CSStoreError: raise HTTPError(500) + logger.debug('parent_exists: %s (%s, %r) -> %r', + basename, default, trail, keylist) + if keylist is not None: return True @@ -104,6 +110,7 @@ class Secrets(HTTPConsumer): basename = self._db_container_key(default, trail) try: keylist = self.root.store.list(basename) + logger.debug('list %s returned %r', basename, keylist) if keylist is None: raise HTTPError(404) response['output'] = json.dumps(keylist) |