change LogError to Errorf