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

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

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