Enclosing debug logs with isDebugEnabled to prevent String object construction when unnecessary.