Skip to content

Commit 86e27e4

Browse files
committed
💚 v2
1 parent 39cd63f commit 86e27e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

structlog_sentry_logger/_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
try:
1717
import git
18-
except ImportError: # Namely, when a git executable is not found
18+
except ImportError as exc: # Namely, when a git executable is not found
19+
logging.getLogger(__name__).warning("Failed to import git", exc_info=exc)
1920
git = None # type: ignore
2021

2122
import orjson # type: ignore

0 commit comments

Comments
 (0)