From 68b52295e70f818a89b1cc7364c2f7e232e0939e Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 31 Mar 2024 03:37:35 -0700 Subject: [PATCH] actions: Don't repeat action traceback in stderr It is already available separately and now printed nicely. In cases where the exception is caused outside of the action method, continue to print stderr. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/actions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plinth/actions.py b/plinth/actions.py index 3db73e26c..0e8f39098 100644 --- a/plinth/actions.py +++ b/plinth/actions.py @@ -331,7 +331,6 @@ def _privileged_call(module_name, action_name, arguments): return_values = func(*arguments['args'], **arguments['kwargs']) return_value = {'result': 'success', 'return': return_values} except Exception as exception: - logger.exception('Error executing action: %s', exception) return_value = { 'result': 'exception', 'exception': {