Fix logging in patches

Change-Id: I827283ffc946a7063de45eb748a67eb2c12565d0