Use canonical FCC server log path

This commit is contained in:
Alishahryar1
2026-05-16 11:51:45 -07:00
parent a728994e29
commit ac2c37f613
9 changed files with 58 additions and 23 deletions
-8
View File
@@ -413,14 +413,6 @@ FIELDS: tuple[ConfigFieldSpec, ...] = (
default="8082",
restart_required=True,
),
ConfigFieldSpec(
"LOG_FILE",
"Log File",
"runtime",
settings_attr="log_file",
default="logs/server.log",
restart_required=True,
),
ConfigFieldSpec(
"MESSAGING_PLATFORM",
"Messaging Platform",
+2 -1
View File
@@ -12,6 +12,7 @@ from loguru import logger
from starlette.types import Receive, Scope, Send
from config.logging_config import configure_logging
from config.paths import server_log_path
from config.settings import get_settings
from core.trace import extract_claude_session_id_from_headers, trace_event
from providers.exceptions import ProviderError
@@ -85,7 +86,7 @@ def create_app(*, lifespan_enabled: bool = True) -> FastAPI:
"""Create and configure the FastAPI application."""
settings = get_settings()
configure_logging(
settings.log_file, verbose_third_party=settings.log_raw_api_payloads
server_log_path(), verbose_third_party=settings.log_raw_api_payloads
)
app_kwargs: dict[str, Any] = {