Mercurial > hg > ltpdarepo
changeset 238:3fee7db86a99 stable
Fix verbosity in admin command line interface.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 12 Dec 2011 16:12:32 +0100 |
parents | 16f095c74706 |
children | 4d218e82d203 |
files | src/ltpdarepo/admin.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ltpdarepo/admin.py Mon Dec 12 16:11:47 2011 +0100 +++ b/src/ltpdarepo/admin.py Mon Dec 12 16:12:32 2011 +0100 @@ -139,7 +139,7 @@ verbosity = args.pop('verbosity') if verbosity: logger = logging.getLogger('ltpdarepo') - logger.setLevel(logger.level - 10 * verbosity) + logger.setLevel(max(logger.level - 10 * verbosity, logging.DEBUG)) # common parameters username = args.pop('_username', None)