Do a better job ensuring log_level is valid