mirror of
https://github.com/maubot/maubot
synced 2025-09-07 22:00:39 +00:00
Try to make log collector thread safe
This commit is contained in:
parent
92bfe37436
commit
8409b2a5bb
2 changed files with 7 additions and 5 deletions
|
@ -44,17 +44,17 @@ config.update()
|
|||
|
||||
logging.config.dictConfig(copy.deepcopy(config["logging"]))
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
|
||||
stop_log_listener = None
|
||||
if config["api_features.log"]:
|
||||
from .management.api.log import init as init_log_listener, stop_all as stop_log_listener
|
||||
|
||||
init_log_listener()
|
||||
init_log_listener(loop)
|
||||
|
||||
log = logging.getLogger("maubot.init")
|
||||
log.info(f"Initializing maubot {__version__}")
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
|
||||
init_zip_loader(config)
|
||||
db_engine = init_db(config)
|
||||
clients = init_client_class(loop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue