Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ out
.idea
.settings
plugin.xml

target-eclipse
.project
.classpath
3 changes: 0 additions & 3 deletions .settings/org.codehaus.groovy.eclipse.preferences.prefs

This file was deleted.

6 changes: 3 additions & 3 deletions AirbrakeGrailsPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import grails.plugins.airbrake.Configuration

class AirbrakeGrailsPlugin {
// the plugin version
def version = '0.9.4'
def version = '0.9.5'
// the version or versions of Grails the plugin is designed for
def grailsVersion = "2.0.0 > *"
def grailsVersion = "2.4.5 > *"
def pluginExcludes = [
"grails-app/conf/**",
"grails-app/views/**",
Expand All @@ -25,7 +25,7 @@ class AirbrakeGrailsPlugin {

def license = "APACHE"
def developers = [ [ name: "Phuong LeCong", email: "phuong@reteltechnologies.com" ], [ name: "Jon Palmer", email: "jpalmer@care.com" ],
[name: 'Donal Murtagh']]
[name: 'Donal Murtagh'],[name: 'Mario Meltzow', email: 'meltzow@invencom.de']]

def issueManagement = [ system: "GitHub", url: "https://github.com/cavneb/airbrake-grails/issues" ]
def scm = [ url: AirbrakeNotifier.NOTIFIER_URL ]
Expand Down
3 changes: 1 addition & 2 deletions application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#Grails Metadata file
#Wed Nov 28 23:11:01 EST 2012
app.grails.version=2.1.1
plugins.tomcat=2.1.1
app.grails.version=2.4.5
20 changes: 15 additions & 5 deletions grails-app/conf/BuildConfig.groovy
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
grails.project.work.dir = "target"

grails.project.dependency.resolver = "maven" // or ivy
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits("global") {
checksums true // Whether to verify checksums on resolve
legacyResolve false
// uncomment to disable ehcache
// excludes 'ehcache'
}
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
repositories {
grailsCentral()
inherits true // Whether to inherit repository definitions from plugins
grailsPlugins()
grailsHome()
grailsCentral()
mavenCentral()
}

// dependencies {
// compile 'org.apache.commons:commons-lang3:3.4'
// }

plugins {
build(":release:2.2.1", ":rest-client-builder:1.0.2", ":tomcat:$grailsVersion") {
export = false
}
build(":release:3.1.2", ":rest-client-builder:2.1.1") {
export = false
}
test(':spock:0.7') {
export = false
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package grails.plugins.airbrake.test

class UserDataFilters {
def airbrakeService

Expand Down
11 changes: 0 additions & 11 deletions grails-app/views/error.gsp

This file was deleted.

7 changes: 6 additions & 1 deletion src/groovy/grails/plugins/airbrake/Notice.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package grails.plugins.airbrake

import groovy.transform.ToString
import groovy.xml.MarkupBuilder

import org.apache.commons.lang.exception.ExceptionUtils;
import org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest
import org.springframework.web.context.request.RequestContextHolder
import org.codehaus.groovy.grails.exceptions.StackTraceFilterer
Expand Down Expand Up @@ -149,7 +151,10 @@ class Notice {
this.env = args.env
this.cgiData = args.cgiData ?: getCgiDataFromRequest(webRequest)
this.session = args.session ?: getSessionData(webRequest)
this.backtrace = parseBacktrace(throwable?.stackTrace ?: args.backtrace)

def stacktraceList = throwable? (ExceptionUtils.getThrowableList(throwable).collect { it.stackTrace}.flatten()) :[]

this.backtrace = parseBacktrace(throwable? stacktraceList : args.backtrace)
this.errorClass = throwable?.class?.name ?: args.errorClass
// Grails creates a really long error message for uncaught exceptions. Essentially a combination of all the webRequest meta data.
// However it creates very unhelpful messages for airbrake so we just prefer the simpler message on the throwable
Expand Down
33 changes: 0 additions & 33 deletions web-app/WEB-INF/applicationContext.xml

This file was deleted.

14 changes: 0 additions & 14 deletions web-app/WEB-INF/sitemesh.xml

This file was deleted.