fix maxwait logging for timed tasks