Added error logging logic for hub, and for index module