Skip to content

Commit 219561b

Browse files
committed
run_udf: extra logging to check caching
1 parent 163f540 commit 219561b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openeo/udf/run_code.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def load_module_from_string(code: str) -> dict:
5757
@param code:
5858
@return:
5959
"""
60+
if _log.isEnabledFor(logging.DEBUG):
61+
cache_info = load_module_from_string.cache_info()
62+
_log.debug(f"run_udf: Loading UDF from string {code[:50]}. Cache info: {cache_info}")
6063
globals = _build_default_execution_context()
6164
exec(code, globals)
6265
return globals

0 commit comments

Comments
 (0)