More logging
diff --git a/src/fetcher.cc b/src/fetcher.cc
index 59a3b35..18e1484 100644
--- a/src/fetcher.cc
+++ b/src/fetcher.cc
@@ -22,12 +22,15 @@
#include "fetcher.h"
#include "fetch-manager.h"
#include "ccnx-pco.h"
+#include "logging.h"
#include <boost/make_shared.hpp>
#include <boost/ref.hpp>
#include <boost/throw_exception.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
+INIT_LOGGER ("Fetcher");
+
using namespace boost;
using namespace std;
using namespace Ccnx;
@@ -91,6 +94,8 @@
if (m_outOfOrderRecvSeqNo.find (m_minSendSeqNo+1) != m_outOfOrderRecvSeqNo.end ())
continue;
+ _LOG_DEBUG (" >>> i " << Name (m_forwardingHint)(m_name)(m_minSendSeqNo+1));
+
// cout << ">>> " << m_minSendSeqNo+1 << endl;
m_ccnx->sendInterest (Name (m_forwardingHint)(m_name)(m_minSendSeqNo+1),
Closure (bind(&Fetcher::OnData, this, m_minSendSeqNo+1, _1, _2),
diff --git a/test/test-serve-and-fetch.cc b/test/test-serve-and-fetch.cc
index 6c9e877..4db2094 100644
--- a/test/test-serve-and-fetch.cc
+++ b/test/test-serve-and-fetch.cc
@@ -131,7 +131,7 @@
server.registerPrefix(broadcastPrefix);
FetchManager fm(ccnx_fetch, bind(simpleMap, _1));
- HashPtr hash = get<0>(pub);
+ HashPtr hash = pub.get<0> ();
Name baseName = Name (deviceName)("file")(hash->GetHash(), hash->GetHashBytes());
fm.Enqueue(deviceName, baseName, bind(segmentCallback, _1, _2, _3, _4), bind(finishCallback, _1, _2), 0, get<1>(pub));