mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
* Refactor sentry to allow toggle * Rename sentry module * Protect sentry manager * Fix tests * Fix EOF newlines * Add docstrings
13 lines
255 B
Python
13 lines
255 B
Python
import logging
|
|
|
|
from redbot.core import sentry
|
|
|
|
|
|
def test_sentry_capture(red):
|
|
log = logging.getLogger(__name__)
|
|
mgr = sentry.SentryManager(log)
|
|
|
|
assert mgr.client is not None
|
|
|
|
mgr.client.captureMessage("Message from test_sentry module.")
|