Add some log messages when subscribing/unsubscribing emitters.

Originally committed to SVN as r4711.
This commit is contained in:
Amar Takhar 2010-07-25 17:30:12 +00:00
parent 3bdf0f95c6
commit 79a67ae1ec

View file

@ -80,11 +80,13 @@ void LogSink::log(SinkMessage *sm) {
}
void LogSink::Subscribe(Emitter *em) {
LOG_D("agi/log/emitter/subscribe") << "Subscribe: " << this;
emitters.push_back(em);
}
void LogSink::Unsubscribe(Emitter *em) {
emitters.erase(std::remove(emitters.begin(), emitters.end(), em), emitters.end());
LOG_D("agi/log/emitter/unsubscribe") << "Un-Ssubscribe: " << this;
}
Message::Message(const char *section,