Avoids logging when it's not relevant. This can potentially reduce driver's internal thread overhead.