Changing log level of messages in distance based classifiers