Added logging in publisher