make api logging a little more efficient, log 500's with error level