Before, all messages would be logged on the prelude container / thread. routing log improvements
18 lines
492 B
Python
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)
|