log output to std

This commit is contained in:
tkl 2021-04-04 07:02:39 +00:00
parent 8274c5cd1a
commit fda8bcddc8

View File

@ -28,8 +28,8 @@ log_level = logging.INFO
LOG_FILE = "/var/log/greenhouse.log" LOG_FILE = "/var/log/greenhouse.log"
LOG_FORMAT = "%(asctime)s %(levelname)s %(message)s" LOG_FORMAT = "%(asctime)s %(levelname)s %(message)s"
logging.basicConfig(format=LOG_FORMAT, level=log_level, filename=LOG_FILE) # logging.basicConfig(format=LOG_FORMAT, level=log_level, filename=LOG_FILE)
#logging.basicConfig(format=LOG_FORMAT, level=log_level) logging.basicConfig(format=LOG_FORMAT, level=log_level)
log = logging.getLogger('greenhouse') log = logging.getLogger('greenhouse')
class Heat(Thread): class Heat(Thread):