sentry
This commit is contained in:
parent
64b851f3a1
commit
cd782db91c
2 changed files with 9 additions and 0 deletions
8
main.py
8
main.py
|
@ -1,8 +1,16 @@
|
|||
import pymysql.cursors
|
||||
from raven import Client
|
||||
|
||||
import config
|
||||
import parser
|
||||
|
||||
if not config.DEBUG:
|
||||
client = Client(
|
||||
dsn=config.sentry_url,
|
||||
processors=(
|
||||
'raven.processors.SanitizePasswordsProcessor',
|
||||
)
|
||||
)
|
||||
# Connect to the database
|
||||
connection = pymysql.connect(host=config.db["host"],
|
||||
user=config.db["user"],
|
||||
|
|
|
@ -10,6 +10,7 @@ itsdangerous==0.24
|
|||
Jinja2==2.9.6
|
||||
MarkupSafe==1.0
|
||||
PyMySQL==0.7.11
|
||||
raven==6.1.0
|
||||
requests==2.18.3
|
||||
SQLAlchemy==1.1.13
|
||||
urllib3==1.22
|
||||
|
|
Reference in a new issue