From 6973c1bf21e0a8292f7acc41768d13adf2deb34b Mon Sep 17 00:00:00 2001 From: berhsi Date: Sat, 27 Jul 2019 19:23:13 +0200 Subject: [PATCH] statusd.py: fix bug change_status() --- statusd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/statusd.py b/statusd.py index 8fc7295..c438800 100755 --- a/statusd.py +++ b/statusd.py @@ -136,7 +136,8 @@ def change_status(raw_data, api): logging.error('Failed to write line to API file') logging.error('Line: {}'.format(line)) logging.error('{}'.format(e)) - logging.error('Failed to open API file') + loggin.error('Failed to open API file. Wrong permissions?') + else: logging.error('API file is not writable. No permissions?') logging.info('Status successfull changed to {}'.format(status)) return True