From 13b4dd15abbd27a755147b187393eaec5093beb8 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Wed, 17 Feb 2021 13:48:14 +0000 Subject: [PATCH] Log the name of the command in execute() To help with troubleshooting, let's log the name of the command being executed as part of the error log. Change-Id: Ie90c6e26f04c4daaf2792dad81fabb7343ff8f75 Signed-off-by: Lucas Alvares Gomes --- ovsdbapp/backend/ovs_idl/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ovsdbapp/backend/ovs_idl/command.py b/ovsdbapp/backend/ovs_idl/command.py index 2d0f381b..171bf1e8 100644 --- a/ovsdbapp/backend/ovs_idl/command.py +++ b/ovsdbapp/backend/ovs_idl/command.py @@ -44,7 +44,8 @@ class BaseCommand(api.Command): except Exception: if log_errors: ignoring = "" if check_error else ": IGNORING" - LOG.exception("Error executing command%s", ignoring) + LOG.exception("Error executing command (%s)%s", + type(self).__name__, ignoring) if check_error: raise