Update scanning_thread() debug output