fix
This commit is contained in:
@@ -1 +0,0 @@
|
||||
from jsonrpc2 import Request, Response, Error, History, ConnectionContext, define, remove, run
|
||||
@@ -152,7 +152,7 @@ def run(logger: logging.Logger) -> str:
|
||||
history = History()
|
||||
fmt = logger.handlers[0].formatter
|
||||
logger.addHandler(history)
|
||||
handlers.setdefault('sync', lambda: list(map(lambda x: fmt.format(x), history.truncate())))
|
||||
define('sync', lambda: list(map(lambda x: fmt.format(x), history.truncate())))
|
||||
|
||||
thread = Thread(target=lambda: trio.run(backend), daemon=True)
|
||||
thread.start()
|
||||
|
||||
Reference in New Issue
Block a user