Skip to content

Commit

Permalink
Merge pull request #99 from openboxes/feature/80-integrate-sentry-plugin
Browse files Browse the repository at this point in the history
#80: Integrate sentry plugin for better exception logging
  • Loading branch information
jmiranda committed Sep 14, 2015
2 parents fb5b29c + 573ad13 commit d478de8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ jdk:
before_install:
- sudo add-apt-repository -y ppa:groovy-dev/grails
- sudo apt-get update
- sudo apt-get install grails-1.3.7
- sudo apt-get install grails-1.3.9

script: "grails test-app unit: --non-interactive"
2 changes: 1 addition & 1 deletion application.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Grails Metadata file
#Fri Aug 14 12:16:18 CDT 2015
#Mon Aug 31 12:18:51 CDT 2015
app.buildDate=02 Feb 2012 11\:17\:30 PM
app.buildNumber=1
app.context=/openboxes
Expand Down
9 changes: 4 additions & 5 deletions grails-app/conf/BuildConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ grails.project.dependency.resolution = {

}
plugins {
compile ":rendering:0.4.4"

runtime( ':constraints:0.6.0' )
compile ":rendering:0.4.4"
compile ":raven:0.5.8"

runtime( ':constraints:0.6.0' )
runtime( ':jquery-validation:1.9' ) { // 1.7.3
excludes 'constraints'
}
Expand All @@ -91,9 +93,6 @@ grails.project.dependency.resolution = {
we've included our own build of it.
test(name:'spock', version:'0.6')
*/



//runtime(":liquibase:1.9.3.6") { excludes 'data-source' }
runtime(':mail:1.0.6') { excludes 'mail', 'spring-test' }
runtime(':excel-import:0.3') { excludes 'poi-contrib', 'poi-scratchpad' }
Expand Down
10 changes: 7 additions & 3 deletions grails-app/conf/Config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@ log4j = {
root {
error 'stdout', 'smtp'
additivity = false
//error 'smtp'
//info 'stdout'
//additivity: false
}


Expand Down Expand Up @@ -324,6 +321,7 @@ log4j = {
'grails.plugin.rendering',
'org.apache.commons.mail',
'grails.plugins.raven',
'net.kencochrane.raven',
//'com.unboundid'
//'org.hibernate.transaction',
//'org.jumpmind',
Expand Down Expand Up @@ -419,6 +417,12 @@ jqueryValidationUi {
}


// Grails Sentry/Raven plugin
// NOTE: You'll need to enable the plugin and set a DSN using an external config properties file
// (namely, openboxes-config.properties or openboxes-config.groovy)
grails.plugins.raven.active = false
grails.plugin.raven.dsn = "https://{PUBLIC_KEY}:{SECRET_KEY}@app.getsentry.com/{PROJECT_ID}"

// Google analytics and feedback have been removed until I can improve performance.
//google.analytics.enabled = false
//google.analytics.webPropertyID = "UA-xxxxxx-x"
Expand Down

0 comments on commit d478de8

Please sign in to comment.