Fix deprecated GC logging switch (#11395)
Fix deprecated GC logging switch (#11395)

Motivation:

This caused test failures due to the deprecation warning and produced a
dumpstream.

Modification:

Replace deprecated flag with recommended one.

Result:
Fix deprecation and cause of test failure in codec project.
netty/netty,tbrooks8/netty,NiteshKant/netty,Spikhalskiy/netty,tbrooks8/netty,johnou/netty,doom369/netty,doom369/netty,netty/netty,doom369/netty,tbrooks8/netty,Spikhalskiy/netty,netty/netty,NiteshKant/netty,netty/netty,johnou/netty,tbrooks8/netty,netty/netty,johnou/netty,Spikhalskiy/netty,NiteshKant/netty,NiteshKant/netty,doom369/netty,johnou/netty,NiteshKant/netty,johnou/netty,Spikhalskiy/netty,doom369/netty,tbrooks8/netty,Spikhalskiy/netty