Disabling stack trackes currently logs messages twice, once with and once without stack trace. PiperOrigin-RevId: 244853127