Avoid accidentally configuring logger for debug during tests