add log on main loop expection