sink: debug log data, drain: handle errors better