Add more logging around padding handling