Improved look of log message

This commit is contained in:
Maximilian Giller 2023-10-09 18:13:38 +02:00
parent c87e076939
commit 4adcbcd9ee

View file

@ -18,7 +18,8 @@ while True:
sensor.setDirection(Directions.OUTSIDE) sensor.setDirection(Directions.OUTSIDE)
distance_outside = sensor.getDistance() distance_outside = sensor.getDistance()
logging.info(f"----------\nInside: {distance_inside} cm") logging.info("----------")
logging.info(f"Inside: {distance_inside} cm")
logging.info(f"Outside: {distance_outside} cm") logging.info(f"Outside: {distance_outside} cm")
sleep(DELAY_SECONDS) sleep(DELAY_SECONDS)