diff options
Diffstat (limited to 'python.d/python_modules/msg.py')
-rw-r--r-- | python.d/python_modules/msg.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/python.d/python_modules/msg.py b/python.d/python_modules/msg.py index b835c94045..74716770c8 100644 --- a/python.d/python_modules/msg.py +++ b/python.d/python_modules/msg.py @@ -93,8 +93,9 @@ def fatal(*args): """ Print message on stderr and exit. """ - log_msg("FATAL", *args) - # using sys.stdout causes IOError: Broken Pipe - print('DISABLE') - # sys.stdout.write('DISABLE\n') + try: + log_msg("FATAL", *args) + print('DISABLE') + except: + pass sys.exit(1) |