Update debug to log