Log(x-1) replaced by Log(1-x)

Using step-by-step to calculate an integral, I get the following answer

enter image description here

Which is equivalent for restricted $x$ values. Why is Mathematica making this change?