diff --git a/plinth/actions.py b/plinth/actions.py index 0634e3dd2..5762d3b99 100644 --- a/plinth/actions.py +++ b/plinth/actions.py @@ -503,6 +503,11 @@ def _privileged_call(module_name, action_name, arguments): return_value = {'result': 'success', 'return': return_values} except Exception as exception: return_value = get_return_value_from_exception(exception) + logger.exception( + 'Error running action: %s..%s(..): %s\nstdout:\n%s\nstderr:\n%s\n', + module_name, action_name, exception, + return_value['exception']['stdout'], + return_value['exception']['stderr']) return return_value