Skip to content

Commit 1729b67

Browse files
CopilotNeiland85
andcommitted
Use named logger instead of root logger in config.py
Co-authored-by: Neiland85 <164719485+Neiland85@users.noreply.github.com>
1 parent a94f239 commit 1729b67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
from pydantic_settings import BaseSettings
77

8+
logger = logging.getLogger(__name__)
9+
810

911
class Settings(BaseSettings):
1012
"""Configuración de la aplicación optimizada para Railway"""
@@ -94,7 +96,7 @@ def __init__(self, **kwargs: object) -> None:
9496
# En modo test o CI, asegurar que tenemos una API key
9597
if is_testing and not self.api_key:
9698
self.api_key = "test_secure_key_for_testing_only_not_production"
97-
logging.info(
99+
logger.info(
98100
"🔧 Auto-configured API_KEY for testing environment (CI=%s, GITHUB_ACTIONS=%s, ENVIRONMENT=%s)",
99101
os.getenv("CI"),
100102
os.getenv("GITHUB_ACTIONS"),

0 commit comments

Comments
 (0)