cppcheck fixes, use logging in kart_selection.cpp