make deleteCompletedLogs non static