Removed unneeded logging message
Fixed compiler error