Truncate debug log each time debug is activated.