fix infinite loop (bug).  diable debug logs.