print logs on the same thread, otherwise we end up with a mangled console.