Remove invalid call to logger