mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Improve logging of periodic command errors
This commit is contained in:
@@ -79,9 +79,9 @@ class Command(BaseCommand):
|
|||||||
if settings.SENTRY_ENABLED:
|
if settings.SENTRY_ENABLED:
|
||||||
from sentry_sdk import capture_exception
|
from sentry_sdk import capture_exception
|
||||||
capture_exception(err)
|
capture_exception(err)
|
||||||
self.stdout.write(self.style.ERROR(f'ERROR runperiodic {str(err)}\n'))
|
self.stdout.write(self.style.ERROR(f'ERROR {name}: {str(err)}\n'))
|
||||||
else:
|
else:
|
||||||
self.stdout.write(self.style.ERROR(f'ERROR runperiodic {str(err)}\n'))
|
self.stdout.write(self.style.ERROR(f'ERROR {name}: {str(err)}\n'))
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
else:
|
else:
|
||||||
if options.get('verbosity') > 1:
|
if options.get('verbosity') > 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user