log on_join function
This commit is contained in:
parent
ab71686633
commit
251b521274
|
@ -9,6 +9,7 @@ from .error import RegistrationError
|
||||||
from .message import get_messages
|
from .message import get_messages
|
||||||
from .context import Context
|
from .context import Context
|
||||||
from .config import INTERNAL_USER, get_config
|
from .config import INTERNAL_USER, get_config
|
||||||
|
from .logger import log
|
||||||
|
|
||||||
|
|
||||||
def register(uris: str,
|
def register(uris: str,
|
||||||
|
@ -234,6 +235,10 @@ class RegisterDispatcher:
|
||||||
risotto_context.paths.append(f'{module_name}.on_join')
|
risotto_context.paths.append(f'{module_name}.on_join')
|
||||||
risotto_context.type = None
|
risotto_context.type = None
|
||||||
risotto_context.connection = connection
|
risotto_context.connection = connection
|
||||||
|
info_msg = _(f'in module {module_name}.on_join')
|
||||||
|
await log.info_msg(risotto_context,
|
||||||
|
None,
|
||||||
|
info_msg)
|
||||||
await module.on_join(risotto_context)
|
await module.on_join(risotto_context)
|
||||||
|
|
||||||
async def insert_message(self,
|
async def insert_message(self,
|
||||||
|
|
Loading…
Reference in New Issue