Configure logging for tensors package
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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__)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user