Fix broken --nc.

This commit is contained in:
Arun Prakash Jana 2017-08-25 03:03:31 +05:30
parent 3b0bd1c054
commit e932525641
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -3301,11 +3301,7 @@ POSITIONAL ARGUMENTS:
TAG_str = '%s # %s\n'
logging.basicConfig(format='[%(levelname)s] %(message)s')
else:
# Enable color in logs
setup_logger(logger)
# Set colors
if args.colorstr:
# Set colors
ID = setcolors(args.colorstr)[0] + '%d. ' + COLORMAP['x']
ID_DB_dim = COLORMAP['z'] + '[%s]\n' + COLORMAP['x']
ID_str = ID + setcolors(args.colorstr)[1] + '%s ' + COLORMAP['x'] + ID_DB_dim
@ -3314,6 +3310,9 @@ POSITIONAL ARGUMENTS:
DESC_str = COLORMAP['j'] + '%s + ' + setcolors(args.colorstr)[3] + '%s\n' + COLORMAP['x']
TAG_str = COLORMAP['j'] + '%s # ' + setcolors(args.colorstr)[4] + '%s\n' + COLORMAP['x']
# Enable color in logs
setup_logger(logger)
# Set up debugging
if args.debug:
logger.setLevel(logging.DEBUG)