If you switch just this line to `if` from `elif` both criticals _and_ warnings get written. Why do you only want one or the other?