examples: Set all log levels to INFO

This commit is contained in:
Mike A
2024-04-25 19:52:01 +02:00
parent 5bc1e2dd3c
commit 3fc65b90a1
3 changed files with 5 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ from findmy.reports import RemoteAnisetteProvider
# URL to (public or local) anisette server
ANISETTE_SERVER = "http://localhost:6969"
logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(level=logging.INFO)
def fetch_reports(priv_key: str) -> int:

View File

@@ -10,7 +10,7 @@ from findmy.reports import RemoteAnisetteProvider
# URL to (public or local) anisette server
ANISETTE_SERVER = "http://localhost:6969"
logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(level=logging.INFO)
async def fetch_reports(priv_key: str) -> int:

View File

@@ -3,6 +3,7 @@ Example showing how to fetch locations of an AirTag, or any other FindMy accesso
"""
from __future__ import annotations
import logging
import sys
from pathlib import Path
@@ -14,6 +15,8 @@ from findmy.reports import RemoteAnisetteProvider
# URL to (public or local) anisette server
ANISETTE_SERVER = "http://localhost:6969"
logging.basicConfig(level=logging.INFO)
def main(plist_path: str) -> int:
# Step 0: create an accessory key generator