Fix sync task logging