debug log cleanup