Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions src/utils/logging_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
import os
import re
import sys
Expand Down Expand Up @@ -131,22 +130,6 @@ def _should_show_location(level: str) -> bool:
return level_map.get(level, True) # Default to True for unknown levels


def _get_task_name() -> str:
"""Get the current asyncio task name if it exists"""
try:
task = asyncio.current_task()
if task:
# Get task name, fallback to a shorter task ID format
name = getattr(task, "name", None)
if name:
return name
return "main" # Default to 'main' if no name set
return "main"
except RuntimeError:
# If called from outside asyncio event loop
return "main"


def _get_replica_id() -> str:
"""Get the current Railway replica ID and transform it into a simple numeric index"""
raw_id = os.getenv("RAILWAY_REPLICA_ID")
Expand Down