diff options
author | David Robillard <d@drobilla.net> | 2016-09-18 04:42:31 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-09-18 04:42:31 -0400 |
commit | ce6dc3d549bc58515d5d55db1d0a009a92887f3c (patch) | |
tree | 2cde2929903e30ec6272a79bd0877dd435aa83c2 /src/server/events | |
parent | 758543f6dbb56755d3239c0ed68f1083384f0e96 (diff) | |
download | ingen-ce6dc3d549bc58515d5d55db1d0a009a92887f3c.tar.gz ingen-ce6dc3d549bc58515d5d55db1d0a009a92887f3c.tar.bz2 ingen-ce6dc3d549bc58515d5d55db1d0a009a92887f3c.zip |
Add fancy communication logging
Diffstat (limited to 'src/server/events')
-rw-r--r-- | src/server/events/Delta.cpp | 22 | ||||
-rw-r--r-- | src/server/events/Undo.cpp | 4 |
2 files changed, 2 insertions, 24 deletions
diff --git a/src/server/events/Delta.cpp b/src/server/events/Delta.cpp index d54ec53f..49ea27ff 100644 --- a/src/server/events/Delta.cpp +++ b/src/server/events/Delta.cpp @@ -38,9 +38,6 @@ #include "SetPortValue.hpp" #include "events/Get.hpp" -// #define DUMP 1 -// #include "ingen/URIMap.hpp" - namespace Ingen { namespace Server { namespace Events { @@ -74,25 +71,6 @@ Delta::Delta(Engine& engine, p.second.set_context(context); } } - -#ifdef DUMP - std::cerr << "Delta " << subject << " : " << (int)context << " {" << std::endl; - typedef Resource::Properties::const_iterator iterator; - for (iterator i = properties.begin(); i != properties.end(); ++i) { - std::cerr << " + " << i->first - << " " << engine.world()->forge().str(i->second) - << "^^<" << engine.world()->uri_map().unmap_uri(i->second.type()) << ">" - << std::endl; - } - typedef Resource::Properties::const_iterator iterator; - for (iterator i = remove.begin(); i != remove.end(); ++i) { - std::cerr << " - " << i->first - << " " << engine.world()->forge().str(i->second) - << "^^<" << engine.world()->uri_map().unmap_uri(i->second.type()) << ">" - << std::endl; - } - std::cerr << "}" << std::endl; -#endif } Delta::~Delta() diff --git a/src/server/events/Undo.cpp b/src/server/events/Undo.cpp index 06289aa1..15c18ca2 100644 --- a/src/server/events/Undo.cpp +++ b/src/server/events/Undo.cpp @@ -44,7 +44,7 @@ Undo::pre_process() } _entry = stack->pop(); - _engine.interface()->set_event_mode(mode); + _engine.event_writer()->set_event_mode(mode); if (_entry.events.size() > 1) { _engine.interface()->bundle_begin(); } @@ -56,7 +56,7 @@ Undo::pre_process() if (_entry.events.size() > 1) { _engine.interface()->bundle_end(); } - _engine.interface()->set_event_mode(mode); + _engine.event_writer()->set_event_mode(mode); return Event::pre_process_done(Status::SUCCESS); } |