Fixed typo in log message
Added logging