Change log level of a message

This commit is contained in:
Gabriel Augendre 2018-04-30 21:06:55 +02:00
parent ab7212babf
commit f765aa613e
No known key found for this signature in database
GPG key ID: F360212F958357D4

View file

@ -100,7 +100,7 @@ def main():
pygame.display.update(dirty_rects) pygame.display.update(dirty_rects)
# Run faster as snake grows # Run faster as snake grows
clock.tick(10 - INITIAL_SNAKE_SIZE + len(snake.slots)) clock.tick(min(30, 10 - INITIAL_SNAKE_SIZE + len(snake.slots)))
screen.fill(BACKGROUND_COLOR) screen.fill(BACKGROUND_COLOR)
@ -121,7 +121,7 @@ def main():
return return
if event.type == pglocals.KEYDOWN: if event.type == pglocals.KEYDOWN:
if event.key == pglocals.K_r: if event.key == pglocals.K_r:
logger.debug('Restarting game') logger.info('Restarting game')
restart = True restart = True
clock.tick(5) clock.tick(5)