Updated log module with commented out lines removal