# HG changeset patch # User Daniele Nicolodi # Date 1323702752 -3600 # Node ID 3fee7db86a99c2715e4f299270e9409b478f61a1 # Parent 16f095c747066dcfe0d2525dc09562c5dd2416c0 Fix verbosity in admin command line interface. diff -r 16f095c74706 -r 3fee7db86a99 src/ltpdarepo/admin.py --- 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)