Improved sync error logging