log problematic query