Johan B.W. de Vries 5e1c5679e5 prelude.log_bytes is now on the right thread
Before, all messages would be logged on the prelude
container / thread.

routing log improvements
2023-04-14 19:09:20 +02:00

18 lines
492 B
Python

from typing import Union
from phasmplatform.common.methodcall import MethodCall, MethodCallError
from phasmplatform.common.value import Value, NoneValue
from .base import BaseRunner
class PreludeRunner(BaseRunner):
__slots__ = ()
def do_call(self, call: MethodCall) -> Union[Value, MethodCallError]:
if call.method.name == 'on_module_loaded':
self.container_log[0]('PreludeRunner loaded')
return NoneValue
raise NotImplementedError(call)