ENH: extra logging around log rotate
TST: fix flushLogs test case