Revision d88a1c50 stv.py
b/stv.py | ||
---|---|---|
362 | 362 |
parser.add_argument('-l', '--loglevel', default=logging.INFO, |
363 | 363 |
dest='loglevel', help='logging level') |
364 | 364 |
args = parser.parse_args() |
365 |
logging.basicConfig(filename=sys.stdout.name, format=LOGGER_FORMAT) |
|
366 |
logging.getLogger(SVT_LOGGER).setLevel(args.loglevel) |
|
365 |
|
|
366 |
stream_handler = logging.StreamHandler(stream=sys.stdout) |
|
367 |
logger = logging.getLogger(SVT_LOGGER) |
|
368 |
logger.setLevel(args.loglevel) |
|
369 |
logger.addHandler(stream_handler) |
|
370 |
|
|
367 | 371 |
ballots = [] |
368 | 372 |
ballots_file = sys.stdin |
369 | 373 |
if args.ballots_file != 'sys.stdin': |
Also available in: Unified diff