Modify some trace() logging to debug()