Skip to content

Commit

Permalink
use *args when logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Aug 5, 2022
1 parent 66838b7 commit 3ebaf20
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions msl/examples/qt/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ def show():
for i in range(1, 101):
level = random.randint(10, 60)
if level < logging.INFO:
log.debug('DEBUG {}'.format(i))
log.debug('DEBUG %d', i)
elif level < logging.WARNING:
log.info('INFO {}'.format(i))
log.info('INFO %d', i)
elif level < logging.ERROR:
log.warning('WARN {}'.format(i))
log.warning('WARN %d', i)
elif level < logging.CRITICAL:
log.error('ERROR {}'.format(i))
log.error('ERROR %d', i)
else:
log.critical('CRITICAL {}'.format(i))
log.critical('CRITICAL %d', i)

logger.resize(800, 400)
logger.show()
Expand Down

0 comments on commit 3ebaf20

Please sign in to comment.