Removed unused import
Fixed truncating log files