[WEB - 1552]chore: attach pages to multiple projects (#4741)
* dev: pages migrations * dev: page models * dev: api migrations * chore: apis for pages migrations * chore: dropped project id from page label and logs * dev: pages logger exception --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
parent
61d8586f7f
commit
cb593538e4
9 changed files with 370 additions and 38 deletions
|
|
@ -10,14 +10,13 @@ from sentry_sdk import capture_exception
|
|||
|
||||
|
||||
def log_exception(e):
|
||||
print(e)
|
||||
# Log the error
|
||||
logger = logging.getLogger("plane")
|
||||
logger.error(e)
|
||||
|
||||
# Log traceback if running in Debug
|
||||
if settings.DEBUG:
|
||||
logger.error(traceback.format_exc(e))
|
||||
# Print the traceback if in debug mode
|
||||
traceback.print_exc(e)
|
||||
|
||||
# Capture in sentry if configured
|
||||
capture_exception(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue