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

@ -31,4 +31,7 @@ def magic_link(email, key, token, current_site):
return
except Exception as e:
capture_exception(e)
# Print logs if in DEBUG mode
if settings.DEBUG:
print(e)
return