logs should be conditional