Add some logging for datanode selection