Anything the pirserver outputs to stderr should get logged by the tor process.
@@ -1,4 +1,10 @@
CXXFLAGS=-g -Wall
toyserver: toyserver.o pirserver.o
- $(CXX) -o $@ $^
+ $(CXX) -Wall -o $@ $^
+
+clean:
+ -rm toyserver.o pirserver.o
+veryclean: clean
+ -rm toyserver
@@ -5,6 +5,7 @@
#include <sys/stat.h>
#include <fcntl.h>
+#include <iostream>
#include <map>
using std::map;
@@ -72,6 +73,7 @@ ToyServer::store(const string &key, const string &value)
} else {
table.erase(key);
}
+ std::cerr << "stored (" << key.length() << ") " << key << "\n";
bool