fix to warning message check for nonpositive values in logged variables