debug: Force path mapper debug logging to diagnose webhook path mapping failure
Local Docker Build (Dev) / build-dev (push) Successful in 4s
Local Docker Build (Dev) / build-dev (push) Successful in 4s
- Enable path_debug temporarily during webhook path mapping - Version 2.0.28 to track path mapping diagnostics - Should show Sonarr root folder matching and TV path mapping logic
This commit is contained in:
@@ -45,7 +45,11 @@ def find_media_path_by_imdb_and_title(
|
||||
if webhook_path and path_mapper:
|
||||
try:
|
||||
if hasattr(path_mapper, 'sonarr_path_to_container_path'):
|
||||
# Force debug mode for path mapping
|
||||
old_debug = getattr(path_mapper, 'path_debug', False)
|
||||
path_mapper.path_debug = True
|
||||
container_path = path_mapper.sonarr_path_to_container_path(webhook_path)
|
||||
path_mapper.path_debug = old_debug
|
||||
print(f"🔍 Sonarr path mapped: {webhook_path} → {container_path}")
|
||||
elif hasattr(path_mapper, 'radarr_path_to_container_path'):
|
||||
container_path = path_mapper.radarr_path_to_container_path(webhook_path)
|
||||
|
||||
Reference in New Issue
Block a user