Suppress Grails WARN plugins for legacy behavior

We use quite a few Grails plugins for our application, and apparently some of them still use the deprecated ApplicationHolder.getApplication() . I can’t determine which ones specifically, and updating willy nilly is not an option.

When our log level is information or lower, we get hundreds of them when starting the grail:

WARN util.GrailsUtil - The [DEPRECATED] ApplicationHolder.getApplication () method is deprecated and will be removed in a future version of Grails.

Is there any way to suppress them?

Update:

Based on the answer from the buy-in, I was able to at least add them to the console in IDEA. However, this does not prevent the addition of 2095 lines to the log file.

+4
source share
2 answers

Starting with Grails 2.0, you can add a new VM parameter at startup:

 -Dgrails.log.deprecated=false 

Source: http://jira.grails.org/browse/GRAILS-8024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

+4
source

If you want to switch to eclipse / sts, there is a built-in suppression function next to each warning message, in which you can switch whether to prevent such warnings

0
source

All Articles