Add debug to log