From fa9d1c7d8d0df83aeedd4e165426e2904ac45013 Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Mon, 27 Nov 2023 14:23:17 +0100 Subject: [PATCH] Log ignored exception details to debug log (#3900) 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