Changed getattr

Commented out getattr and use regular logger