From 18f5fe9d97a65b6ad74de133eca268d4c3023939 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Wed, 24 Jun 2015 08:41:12 +0200 Subject: [PATCH] Make CTRL-C behave the same as Q, without complaining about non-empty error log. --- pg_view.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pg_view.py b/pg_view.py index 48a6e8a..91aefe1 100644 --- a/pg_view.py +++ b/pg_view.py @@ -3298,9 +3298,7 @@ def main(): loop(collectors, consumer, groups, output_method) logger.addHandler(log_stderr) except KeyboardInterrupt: - print('Interrupted by user') - if os.stat(LOG_FILE_NAME)[stat.ST_SIZE] != 0: - print('Errors detected, see {0} for warnings and errors output'.format(LOG_FILE_NAME)) + pass except curses.error: print(traceback.format_exc()) if 'SSH_CLIENT' in os.environ and 'SSH_TTY' not in os.environ: