Improved error logging in sync event queue