Skip to content

Commit

Permalink
Issue 229 Update accessing config to use non-depricated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
matt.aguirre committed Mar 28, 2024
1 parent ae6aa97 commit dd71dee
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 dd71dee

Please sign in to comment.