From 05dac2fc94433b2e47ae1ec0cd6e34a967dc7624 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 25 Feb 2026 14:56:25 +0000 Subject: [PATCH] chore: prune unnecessary code (automated weekly cleanup) Co-authored-by: Miyamura80 <38335479+Miyamura80@users.noreply.github.com> --- src/utils/logging_config.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/utils/logging_config.py b/src/utils/logging_config.py index 2da588f..ce60bb3 100644 --- a/src/utils/logging_config.py +++ b/src/utils/logging_config.py @@ -1,4 +1,3 @@ -import asyncio import os import re import sys @@ -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")