Skip to content

Commit

Permalink
Merge pull request #230 from ZenHarbinger/issue/229
Browse files Browse the repository at this point in the history
Issue 229 Update accessing config to use non-depricated methods
  • Loading branch information
robertoschwald committed Jul 10, 2024
2 parents ae6aa97 + dd71dee commit 759591f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ class ReflectionUtils {

static ConfigObject getAuditConfig() {
def grailsConfig = getApplication().config
if (grailsConfig.auditLog) {
if (grailsConfig.containsProperty('auditLog')) {
log.error "Your auditLog configuration settings use the old prefix 'auditLog' but must now use 'grails.plugin.auditLog'"
}
grailsConfig.grails.plugin.auditLog
grailsConfig.getProperty('grails.plugin.auditLog', ConfigObject.class)
}

static void setAuditConfig(ConfigObject c) {
Expand Down

0 comments on commit 759591f

Please sign in to comment.