flask scheduler logging warning suppress
This commit is contained in:
1 parent
5121589dad
commit
b9a61dbeed
2 files changed
+3
No files matched your search
@@ -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 scanner import update_cache, get_cache_snapshot, get_sensor_summary, get_sensor_details, scan_macs
|
||||||
from config import *
|
from config import *
|
||||||
from ble_redis import *
|
from ble_redis import *
|
||||||
|
import logging
|
||||||
|
logging.getLogger('apscheduler').setLevel(logging.ERROR)
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
scheduler = APScheduler()
|
scheduler = APScheduler()
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import asyncio
|
|||||||
from bleak import BleakClient, BleakScanner
|
from bleak import BleakClient, BleakScanner
|
||||||
import warnings
|
import warnings
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
|
logging.getLogger('apscheduler').setLevel(logging.ERROR)
|
||||||
|
|
||||||
# Mi sensor UUIDs
|
# Mi sensor UUIDs
|
||||||
MI_SERVICE_UUID = "ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6"
|
MI_SERVICE_UUID = "ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6"
|
||||||
|
|||||||
Reference in new issue
Block a user