mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
17 lines
288 B
Python
17 lines
288 B
Python
# Python imports
|
|
import logging
|
|
|
|
# Third party imports
|
|
from sentry_sdk import capture_exception
|
|
|
|
|
|
def log_exception(e):
|
|
print(e)
|
|
# Log the error
|
|
logger = logging.getLogger("plane")
|
|
logger.error(e)
|
|
|
|
# Capture in sentry if configured
|
|
capture_exception(e)
|
|
return
|