From 23f15aed3452d8c11cdd80cde8a114a8fe62ff11 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 7 Mar 2021 18:52:38 -0700 Subject: [PATCH] Ditch logging module --- server/power.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/power.py b/server/power.py index bddf530..5710e23 100644 --- a/server/power.py +++ b/server/power.py @@ -1,6 +1,5 @@ import requests import settings -import logging import time def np_02B_api(ip, username, password, is_on): @@ -37,7 +36,7 @@ if __name__ == '__main__': print('Turning lights off...') lights_off() except BaseException as e: - logging.error('Problem with lights: {} - {}'.format(e.__class__.__name__, str(e))) + print('Problem with lights: {} - {}'.format(e.__class__.__name__, str(e))) try: print('Turning grid on...') @@ -49,4 +48,4 @@ if __name__ == '__main__': print('Turning grid off...') grid_off() except BaseException as e: - logging.error('Problem with grid: {} - {}'.format(e.__class__.__name__, str(e))) + print('Problem with grid: {} - {}'.format(e.__class__.__name__, str(e)))