commit d72b8f71d55969ed17a87e167557539fe73dcac4 Author: Pierre-Yves Chibon pingou@pingoured.fr Date: Wed Mar 5 16:47:17 2014 +0100
Handle the logging from the API as well
pkgdb2-cli | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) --- diff --git a/pkgdb2-cli b/pkgdb2-cli index 2db1686..b738a4f 100755 --- a/pkgdb2-cli +++ b/pkgdb2-cli @@ -41,9 +41,11 @@ reset = "\033[0;0m"
# Initial simple logging stuff logging.basicConfig() -log = logging.getLogger("pkgdb") +pkgdblog = logging.getLogger("pkgdb") +log = logging.getLogger("pkgdb-cli") if '--debug' in sys.argv: log.setLevel(logging.DEBUG) + pkgdblog.setLevel(logging.DEBUG) #pkgdbclient.debug = True elif '--verbose' in sys.argv: log.setLevel(logging.INFO)