Add debug.
This commit is contained in:
parent
f88b965a75
commit
49dc3fa220
@ -283,7 +283,7 @@ def thermostat_loop():
|
|||||||
db.session.rollback()
|
db.session.rollback()
|
||||||
logging.debug("Update mode in DB")
|
logging.debug("Update mode in DB")
|
||||||
cur_mode = db.session.execute(db.select(Set_mode).filter_by(name="mode")).scalar_one()
|
cur_mode = db.session.execute(db.select(Set_mode).filter_by(name="mode")).scalar_one()
|
||||||
logging.debug("Current mode: "+str(cur_mode))
|
logging.debug("Current mode: "+str(cur_mode.value))
|
||||||
cur_mode = data
|
cur_mode = data
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user