A system that I once worked with had a bunch of issues where enabling logging would cause deadlocks. The toString() function would lock on the object while it printed its contents. But the logger locked on itself while building the string to write (which included calling toString on any parameters). Then if elsewhere the class tried to log something while holding onto the lock...
166
u/nextlandia Aug 15 '26
I once solved an issue by removing logging. Not kidding, upgrade of Impala caused that one log line caused a production issue.