isn't this the whole point of log levels? You shouldn't need to do the conditional for this - the logger should handle it itself