chore: enable print logs for background workers when in DEBUG mode (#1357)

This commit is contained in:
pablohashescobar 2023-06-22 19:48:17 +05:30 committed by GitHub
parent bfac39f1bc
commit 33cfbbf153
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 27 additions and 1 deletions

View file

@ -66,5 +66,8 @@ def workspace_invitation(email, workspace_id, token, current_site, invitor):
except (Workspace.DoesNotExist, WorkspaceMemberInvite.DoesNotExist) as e:
return
except Exception as e:
# Print logs if in DEBUG mode
if settings.DEBUG:
print(e)
capture_exception(e)
return