forked from mia/Aegisub
Add some log messages when subscribing/unsubscribing emitters.
Originally committed to SVN as r4711.
This commit is contained in:
parent
3bdf0f95c6
commit
79a67ae1ec
1 changed files with 2 additions and 0 deletions
|
@ -80,11 +80,13 @@ void LogSink::log(SinkMessage *sm) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogSink::Subscribe(Emitter *em) {
|
void LogSink::Subscribe(Emitter *em) {
|
||||||
|
LOG_D("agi/log/emitter/subscribe") << "Subscribe: " << this;
|
||||||
emitters.push_back(em);
|
emitters.push_back(em);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogSink::Unsubscribe(Emitter *em) {
|
void LogSink::Unsubscribe(Emitter *em) {
|
||||||
emitters.erase(std::remove(emitters.begin(), emitters.end(), em), emitters.end());
|
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,
|
Message::Message(const char *section,
|
||||||
|
|
Loading…
Reference in a new issue