* dev: enable api logging and control worker count through env * dev: enable logger instead of printing * dev: remove worker counts * dev: enable global level log settings * dev: add rotating logger * fix: logging configuration * dev: api logging and moving the capture exception to utils for logging and then capturing * fix: information leaking through print logs * dev: linting fix * dev: logging configuration for django * fix: linting errors * dev: add logs for migrator * dev: logging cofiguration * dev: add permision for captain user in Plane * dev: add log paths in compose * dev: create directory for logs * dev: fix linting errors
15 lines
275 B
Python
15 lines
275 B
Python
# Python imports
|
|
import logging
|
|
|
|
# Third party imports
|
|
from sentry_sdk import capture_exception
|
|
|
|
|
|
def log_exception(e):
|
|
# Log the error
|
|
logger = logging.getLogger("plane")
|
|
logger.error(e)
|
|
|
|
# Capture in sentry if configured
|
|
capture_exception(e)
|
|
return
|