Log rotation hack