From f765aa613e5326fd0f45bc1a12183e98656dcce3 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 30 Apr 2018 21:06:55 +0200 Subject: [PATCH] Change log level of a message --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 0f2a247..b80e13e 100644 --- a/main.py +++ b/main.py @@ -100,7 +100,7 @@ def main(): pygame.display.update(dirty_rects) # 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) @@ -121,7 +121,7 @@ def main(): return if event.type == pglocals.KEYDOWN: if event.key == pglocals.K_r: - logger.debug('Restarting game') + logger.info('Restarting game') restart = True clock.tick(5)