log only if logs are present