Ubuntu Pastebin

Paste from cjwatson at Tue, 10 Jan 2017 12:09:50 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
diff --git a/snapcraft/_store.py b/snapcraft/_store.py
index 58ced4f..a67bbea 100644
--- a/snapcraft/_store.py
+++ b/snapcraft/_store.py
@@ -304,7 +304,9 @@ def register_key(name):
         raise RuntimeError('Cannot continue without logging in successfully.')
     logger.info('Registering key ...')
     account_info = store.get_account_information()
+    logger.info('Account information: {}'.format(json.dumps(account_info)))
     account_key_request = _export_key(key['name'], account_info['account_id'])
+    logger.info('Key request: {}'.format(json.dumps(account_key_request)))
     store.register_key(account_key_request)
     logger.info(
         'Done. The key "{}" ({}) may be used to sign your assertions.'.format(
Download as text