From 505114412466917481f797e232fb593052fc1688 Mon Sep 17 00:00:00 2001 From: flan Date: Fri, 8 Mar 2019 13:29:40 +0100 Subject: [PATCH] Include request parameters in log messages --- ankisyncd/sync_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ankisyncd/sync_app.py b/ankisyncd/sync_app.py index 19ba964..f75a7a3 100644 --- a/ankisyncd/sync_app.py +++ b/ankisyncd/sync_app.py @@ -667,7 +667,7 @@ class SyncApp: self.col. """ - def run_func(col): + def run_func(col, **keyword_args): # Retrieve the correct handler method. handler = session.get_handler_for_operation(method_name, col) handler_method = getattr(handler, method_name) @@ -681,7 +681,7 @@ class SyncApp: # Send the closure to the thread for execution. thread = session.get_thread() - result = thread.execute(run_func) + result = thread.execute(run_func, kw=keyword_args) return result