Skip to content

Commit c65793a

Browse files
kesmit13claude
andcommitted
Call setup_logging() in FunctionHandler.initialize() for WASM handler
Without this, the accel status log messages ("Using accelerated C call_function_accel loop" / "Using pure Python call_function loop") are silently dropped because no logging handler is configured in the WASM handler path. setup_logging() was only called from __main__.py (collocated server CLI). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1b62a6c commit c65793a

File tree

1 file changed

+2
-0
lines changed
  • singlestoredb/functions/ext/collocated

1 file changed

+2
-0
lines changed

singlestoredb/functions/ext/collocated/wasm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from .registry import call_function
1313
from .registry import describe_functions_json
1414
from .registry import FunctionRegistry
15+
from .registry import setup_logging
1516

1617
logger = logging.getLogger('udf_handler')
1718

@@ -24,6 +25,7 @@ class FunctionHandler:
2425

2526
def initialize(self) -> None:
2627
"""Initialize and discover UDF functions from loaded modules."""
28+
setup_logging()
2729
if _has_accel:
2830
logger.info('Using accelerated C call_function_accel loop')
2931
else:

0 commit comments

Comments
 (0)