Add more debugging printouts

master
Thor 4 years ago
parent 5d85050633
commit 04996e1196
  1. 3
      src/protocol/protocol.cpp

@ -11,7 +11,7 @@
using namespace std;
using namespace util;
const bool debug = false;
const bool debug = true;
namespace protocol {
void protocol_t::set_handlers(const handler_map_t handlers) {
@ -30,6 +30,7 @@ namespace protocol {
}
void protocol_t::send(const token::list_t& tokens) {
debug && cerr << "Sent pattern " << protocol::token::pattern_t(tokens) << endl;
this->emit(token::compose(tokens));
}

Loading…
Cancel
Save