Ditch logging module

This commit is contained in:
Tanner Collin 2021-03-07 18:52:38 -07:00
parent 2c0c838bdb
commit 23f15aed34

View File

@ -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)))