File tree Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1010from flask_sqlalchemy import SQLAlchemy
1111from raven .contrib .flask import Sentry
1212
13+ import sentry_sdk
14+ from sentry_sdk .integrations .flask import FlaskIntegration
15+ from sentry_sdk .integrations .sqlalchemy import SqlalchemyIntegration
16+
1317app = Flask (__name__ )
1418gzip = Gzip (app )
1519
2428
2529db = SQLAlchemy (app )
2630migrate = Migrate (app , db )
31+
32+ # Sentry setup
2733sentry = Sentry (app )
34+ sentry_sdk .init (
35+ dsn = app .config ['SENTRY_DSN' ],
36+ integrations = [FlaskIntegration (), SqlalchemyIntegration ()]
37+ )
2838
2939ldap = CSHLDAP (app .config ['LDAP_BIND_DN' ],
3040 app .config ['LDAP_BIND_PW' ],
Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ <h3 class="panel-title">Conditionals</h3>
195195 {% endif %}
196196
197197
198- {% if is_eboard %}
199198 < div class ="panel panel-default ">
200199 < div class ="panel-heading ">
201200 < h3 class ="panel-title "> Member Statistics</ h3 >
@@ -220,7 +219,6 @@ <h3 class="panel-title">Member Statistics</h3>
220219 </ div >
221220 </ div >
222221 </ div >
223- {% endif %}
224222
225223
226224 {% if major_projects_count == 0 and not active%}
Original file line number Diff line number Diff line change 2626
2727# Sentry config
2828# Do not set the DSN for local development
29+ SENTRY_DSN = env .get ("CONDITIONAL_SENTRY_DSN" , "" )
2930SENTRY_CONFIG = {
3031 'dsn' : env .get ("CONDITIONAL_SENTRY_DSN" , "" ),
3132 'release' : VERSION ,
Original file line number Diff line number Diff line change 11{
22 "name" : " conditional" ,
3- "version" : " 1.10.0 " ,
3+ "version" : " 1.10.1 " ,
44 "description" : " CSH Re-evaluation (MEGA_EVALS RE:RE:LOADED)" ,
55 "license" : " MIT" ,
66 "homepage" : " http://csh.rit.edu/" ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ pylint~=2.3.1
2323python-dateutil ~= 2.6.1
2424python-editor ~= 1.0.3
2525raven ~= 6.6.0
26+ sentry-sdk [flask ]~= 0.13.1
2627six ~= 1.11.0
2728SQLAlchemy ~= 1.3.7
2829structlog ~= 18.1.0
You can’t perform that action at this time.
0 commit comments