Configure logging for tensors package

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
aladac
2026-03-03 18:55:20 +01:00
parent c8d1efa641
commit f04e7b5cfa
+10
View File
@@ -3,6 +3,7 @@
from __future__ import annotations from __future__ import annotations
import logging import logging
import sys
from contextlib import asynccontextmanager from contextlib import asynccontextmanager
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
@@ -27,6 +28,15 @@ if TYPE_CHECKING:
__all__ = ["app", "create_app"] __all__ = ["app", "create_app"]
# Configure logging for tensors package
logging.basicConfig(
level=logging.INFO,
format="%(levelname)s: %(name)s - %(message)s",
stream=sys.stdout,
)
# Set tensors loggers to INFO
logging.getLogger("tensors").setLevel(logging.INFO)
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)