From 957e31016161c1b1ac890b3b3be32b5f172d6136 Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Thu, 16 Nov 2023 08:53:07 +0100 Subject: [PATCH] Log ignored exception details to debug log This allows the user to see the exception stack trace by running in verbose mode. Signed-off-by: Christian Svensson --- src/ansiblelint/_internal/rules.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ansiblelint/_internal/rules.py b/src/ansiblelint/_internal/rules.py index c4746aa7db..cfa3db2aa6 100644 --- a/src/ansiblelint/_internal/rules.py +++ b/src/ansiblelint/_internal/rules.py @@ -99,6 +99,7 @@ def getmatches(self, file: Lintable) -> list[MatchError]: str(file), exc, ) + _logger.debug("Ignored exception details", exc_info=True) else: matches.extend(self.matchdir(file)) return matches