log returns true/false and inhibits errors
add log_if for conditional logging