Added debug to log command