Remove problematic logging code