make log texts go on new line
This commit is contained in:
parent
433bf409f4
commit
ed095ad87a
@ -108,7 +108,7 @@ def log_results(results):
|
|||||||
profit = results['total_profit']
|
profit = results['total_profit']
|
||||||
|
|
||||||
if profit >= TOTAL_PROFIT_TO_BEAT:
|
if profit >= TOTAL_PROFIT_TO_BEAT:
|
||||||
logger.info('\n{:5d}/{}: {}'.format(current_try, total_tries, result))
|
logger.info('{:5d}/{}: {}'.format(current_try, total_tries, result))
|
||||||
else:
|
else:
|
||||||
print('.', end='')
|
print('.', end='')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
@ -223,7 +223,7 @@ def start(args):
|
|||||||
# Initialize logger
|
# Initialize logger
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=args.loglevel,
|
level=args.loglevel,
|
||||||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
format='\n%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
||||||
)
|
)
|
||||||
|
|
||||||
logger.info('Using config: %s ...', args.config)
|
logger.info('Using config: %s ...', args.config)
|
||||||
|
Loading…
Reference in New Issue
Block a user