flask scheduler logging warning suppress

This commit is contained in:
matt committed 2026-10-13 03:26:11 -07:00
1 parent 5121589dad
commit b9a61dbeed
2 files changed
+3

No files matched your search

+2
View File
@@ -5,6 +5,8 @@ from datetime import datetime, timedelta
from scanner import update_cache, get_cache_snapshot, get_sensor_summary, get_sensor_details, scan_macs
from config import *
from ble_redis import *
import logging
logging.getLogger('apscheduler').setLevel(logging.ERROR)
app = Flask(__name__)
scheduler = APScheduler()
+1
View File
@@ -2,6 +2,7 @@ import asyncio
from bleak import BleakClient, BleakScanner
import warnings
warnings.filterwarnings("ignore")
logging.getLogger('apscheduler').setLevel(logging.ERROR)
# Mi sensor UUIDs
MI_SERVICE_UUID = "ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6"