rest: add logging
rest: remove txt format from _most_idle
and add logging