if there's no "if (DEBUG)" it will concatenate the string even if LOG.debug does nothing.
"currentLevel: "+currentLevel is evaluated which involves copying bytes around.
"if (DEBUG)" guarantees the line disappears altogether. Other optimizations at runtime are unclear.