Ditch logging module

master
Tanner Collin 3 years ago
parent 2c0c838bdb
commit 23f15aed34
  1. 5
      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)))

Loading…
Cancel
Save