Fix code example for log level checking.