Pass central log and convert scanning_thread() to use it