Fix typo and log to logger instead of logging