Skip to content

Image Pipeline Playground

fix(backend): improve logging in custom script processing

Mohammad Rajaei0908ebfa4abe
diff --git a/backend/app/nodes/custom.py b/backend/app/nodes/custom.py
index 7f9b9cb..a652a7f 100644
--- a/backend/app/nodes/custom.py
+++ b/backend/app/nodes/custom.py
@@ -15,7 +15,11 @@ DEFAULT_CUSTOM_CODE = """\
def process(image, seed=0):
# image: BGR uint8 numpy array (H, W, C)
# return: ndarray (same dtype preferred)
- # Helpers: log(*args) — writes to Script log in the inspector
+ #
+ # log(...) writes to the Script log panel in the inspector.
+ log("running custom script", "seed=", seed)
+ log("input image", image)
+
return image
"""