Skip to content

Commit bef03af

Browse files
fix: Reduce logging for path mapping. (#258)
Signed-off-by: Karthik Bekal Pattathana <133984042+karthikbekalp@users.noreply.github.com>
1 parent 85a00eb commit bef03af

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

src/deadline/cinema4d_adaptor/Cinema4DClient/cinema4d_client.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,30 +88,25 @@ def map_path(self, path: str) -> str:
8888
# If submission was not from Mac (i.e. not posix source format), just do normal path mapping
8989
if not has_posix_format:
9090
mapped_path = super().map_path(path)
91-
print(f"Using normal path mapping (non-POSIX): '{path}' -> '{mapped_path}'")
9291
return mapped_path
9392

9493
print(
9594
"Found POSIX format rule, converting path separators for Mac to Windows compatibility"
9695
)
97-
print(f"Original path: '{path}'")
9896

9997
# Convert backslashes to forward slashes for consistency with POSIX paths.
10098
# This is safe because:
10199
# 1. When submitting from Mac, backslashes can only appear as path separators
102100
# 2. Windows accepts both '\' and '/' as valid path separators
103101
converted_path = path.replace("\\", "/")
104-
print(f"Converted path: '{converted_path}'")
105102

106103
# Try path mapping with converted path
107104
mapped_path = super().map_path(converted_path)
108105

109106
# If mapped path is the same as converted path, mapping failed
110107
# so try with original path instead
111108
if mapped_path == converted_path:
112-
print("Path mapping with converted path failed (no rules matched)")
113109
mapped_path = super().map_path(path)
114-
print(f"Using original path mapping: '{path}' -> '{mapped_path}'")
115110
return mapped_path
116111

117112
print(f"Successfully mapped converted path: '{converted_path}' -> '{mapped_path}'")

src/deadline/cinema4d_adaptor/Cinema4DClient/cinema4d_handler.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ def _remap_assets(self) -> None:
7777
# whether we have done owner[param_id] = mapped_path
7878
attempted_basic_path_mapping_approach = False
7979
try:
80-
print(
81-
f"Attempting to update path for asset with owner '{owner}', paramId '{param_id}', "
82-
f"new filename '{mapped_path}', nodeSpace '{node_space}', and nodePath '{node_path}'."
83-
)
8480
success = self._pathmap_recognized_types(
8581
owner, param_id, node_space, node_path, mapped_path
8682
)

0 commit comments

Comments
 (0)