mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove sentry downsampling on pdf errors
load errors should be less frequent now
This commit is contained in:
parent
7555382e33
commit
8c9fcfdd60
2 changed files with 2 additions and 2 deletions
|
@ -197,7 +197,7 @@ define [
|
|||
timedOut = false
|
||||
timer = $timeout () => # page load timed out
|
||||
return if loadTask.cancelled # return from cancelled page load
|
||||
Raven?.captureMessage?('pdfng page load timed out after ' + @PAGE_LOAD_TIMEOUT + 'ms (1% sample)') if Math.random() < 0.01
|
||||
Raven?.captureMessage?('pdfng page load timed out after ' + @PAGE_LOAD_TIMEOUT + 'ms')
|
||||
timedOut = true
|
||||
@clearIndicator page
|
||||
# @jobs = @jobs - 1
|
||||
|
|
|
@ -45,7 +45,7 @@ define [
|
|||
loadedCallback: () ->
|
||||
$scope.$emit 'loaded'
|
||||
errorCallback: (error) ->
|
||||
Raven?.captureMessage?('pdfng error ' + error + ' (1% sample)') if Math.random() < 0.01
|
||||
Raven?.captureMessage?('pdfng error ' + error)
|
||||
$scope.$emit 'pdf:error', error
|
||||
pageSizeChangeCallback: (pageNum, deltaH) ->
|
||||
$scope.$broadcast 'pdf:page:size-change', pageNum, deltaH
|
||||
|
|
Loading…
Reference in a new issue