diff --git a/grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy b/grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy index 3ebdf43d9da..b26e10b0af0 100644 --- a/grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy +++ b/grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy @@ -295,7 +295,7 @@ class NavigableMap implements Map, Cloneable { Object result = get(name) if (!(result instanceof NavigableMap)) { if (LOG.isWarnEnabled()) { - LOG.warn("Accessing config through dot notation is deprecated, and it will be removed in a future release. Use 'config.getProperty(key, targetClass)' instead.") + LOG.warn("Accessing config key '{}' through dot notation is deprecated, and it will be removed in a future release. Use 'config.getProperty(key, targetClass)' instead.", name) } } return result @@ -441,7 +441,7 @@ class NavigableMap implements Map, Cloneable { this.parent = parent this.path = path if (LOG.isWarnEnabled()) { - LOG.warn("Accessing config through dot notation is deprecated, and it will be removed in a future release. Use 'config.getProperty(key, targetClass)' instead.") + LOG.warn("Accessing config key '{}' through dot notation is deprecated, and it will be removed in a future release. Use 'config.getProperty(key, targetClass)' instead.", path) } }