protected void reportUntracedLeak ( String resourceType ) { logger . error ( "LEAK: {}.release() was not called before it's garbage-collected. " + "Enable advanced leak reporting to find out where the leak occurred. " + "To enable advanced leak reporting, " + "specify the JVM option '-D{}={}' or call {}.setLevel() " + "See http://netty.io/wiki/reference-counted-objects.html for more information." , resourceType , PROP_LEVEL , Level . ADVANCED . name ( ) . toLowerCase ( ) , simpleClassName ( this ) ) ; }
This method is called when an untraced leak is detected . It can be overridden for tracking how many times leaks have been detected .