Skip to content

Commit 8b2e7cf

Browse files
committed
Don't log cleanup exception, methods not present in GORM 5
1 parent 226dfbb commit 8b2e7cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

grails-plugin-domain-class/src/main/groovy/org/grails/plugins/domain/support/GrailsDomainClassCleaner.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ class GrailsDomainClassCleaner implements ApplicationListener<ContextClosedEvent
4343
if(GormEntity.isAssignableFrom(clz)) {
4444
try {
4545
clz.initInternalApi null
46-
} catch (e) {
47-
log.warn("Error clearing instance api property in ${clz.name}", e)
46+
} catch (Throwable e) {
47+
// ignore, GORM 5 doesn't have these methods
4848
}
4949
try {
5050
clz.initInternalStaticApi null
51-
} catch (e) {
52-
log.warn("Error clearing static api property in ${clz.name}", e)
51+
} catch (Throwable e) {
52+
// ignore, GORM 5 doesn't have these methods
5353
}
5454
} else {
5555
clearStaticApiInstances(clz)

0 commit comments

Comments
 (0)