From 04996e1196db8fa16b3619e6ea49bee30695b8ed Mon Sep 17 00:00:00 2001 From: Thor Harald Johansen Date: Sat, 6 Jun 2020 14:46:31 +0200 Subject: [PATCH] Add more debugging printouts --- src/protocol/protocol.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol/protocol.cpp b/src/protocol/protocol.cpp index c72c418..4df083a 100644 --- a/src/protocol/protocol.cpp +++ b/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)); }