commit:     032c1c60eb2a33f1cd52a0023dcd2e6d0de54f01
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 29 10:18:34 2016 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Fri Jan 29 10:20:10 2016 +0000
URL:        https://gitweb.gentoo.org/proj/layman.git/commit/?id=032c1c60

remotedb.py: Update for latest ssl-fetch API

 layman/remotedb.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/layman/remotedb.py b/layman/remotedb.py
index 5a66a3f..75f6739 100644
--- a/layman/remotedb.py
+++ b/layman/remotedb.py
@@ -119,9 +119,15 @@ class RemoteDB(DbBase):
             'info':  self.output.info,
             'debug': self.output.debug,
             'error': self.output.error,
+            'exception': self.output.error,
+            # we want any warnings to be printed to the terminal
+            # so assign it to output.info with a lower noise level
+            'warning': self.output.info,
+            'kwargs-exception': {'level': None},
             'kwargs-info': {'level': 5},
             'kwargs-debug': {'level': 2},
             'kwargs-error':{'level': None},
+            'kwargs-warning': {'level': 2},
         }
         fetcher = Connector(connector_output, self.proxies, USERAGENT)
 

Reply via email to