Second attempt at better logging in do_write - I actually did do_read
the first time.