Fix #1778: Log only errors and delete log file on installation