File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ login_cookie_max_age = 36000
129
129
mail_white_list =
130
130
static_rev =
131
131
redis = redislog = false
132
+ sentry =
132
133
statsd_uri =
133
134
statsd_uri = statsd://localhost:8125
134
135
statsd =
@@ -205,6 +206,7 @@ text =
205
206
mailin_trace_file = ${:var}/mailin_trace
206
207
207
208
${:redis}
209
+ ${:sentry}
208
210
209
211
${:statsd_uri}
210
212
framestats = ${:framestats}
Original file line number Diff line number Diff line change @@ -401,6 +401,7 @@ def worker():
401
401
root , closer = open_root (config )
402
402
403
403
registry = get_current_registry ()
404
+ sentry_dsn = registry .settings .get ('sentry_dsn' )
404
405
queue = RedisArchiveQueue .from_settings (registry .settings )
405
406
406
407
if options .refresh_authentication :
@@ -440,6 +441,9 @@ def worker():
440
441
transaction .begin ()
441
442
community .archive_status = 'exception'
442
443
transaction .commit ()
444
+ if sentry_dsn :
445
+ import raven
446
+ raven .Client (sentry_dsn ).captureException ()
443
447
raise
444
448
finally :
445
449
# Persist log in its own transaction so that even if there is an
Original file line number Diff line number Diff line change 48
48
'pyramid_tm' ,
49
49
'pyramid_zcml' ,
50
50
'formish<0.9' ,
51
+ 'raven' ,
51
52
'redis' , # archive to box
52
53
'repoze.browserid' ,
53
54
'repoze.catalog>=0.8.3' , # 'total' attribute of numdocs
Original file line number Diff line number Diff line change @@ -434,3 +434,13 @@ newt.db = 0.9.0
434
434
# Required by:
435
435
# karl==4.31.1
436
436
newt.qbe = 0.1.1
437
+
438
+ # Added by buildout at 2017-08-08 13:08:55.132034
439
+
440
+ # Required by:
441
+ # raven==6.1.0
442
+ contextlib2 = 0.5.5
443
+
444
+ # Required by:
445
+ # karl==4.31.1
446
+ raven = 6.1.0
You can’t perform that action at this time.
0 commit comments