Add some documentation to SentryLogger

This commit is contained in:
Jaime van Kessel 2019-12-16 11:15:25 +01:00
parent 62ea766880
commit ffccca257f
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -11,6 +11,12 @@ home_dir = os.path.expanduser("~")
class SentryLogger(LogOutput): class SentryLogger(LogOutput):
# Sentry (https://sentry.io) is the service that Cura uses for logging crashes. This logger ensures that the
# regular log entries that we create are added as breadcrumbs so when a crash actually happens, they are already
# processed and ready for sending.
# Note that this only prepares them for sending. It only sends them when the user actually agrees to sending the
# information.
_levels = { _levels = {
"w": "warning", "w": "warning",
"i": "info", "i": "info",