mirror of https://github.com/odrling/Aegisub
Add some log messages when subscribing/unsubscribing emitters.
Originally committed to SVN as r4711.
This commit is contained in:
parent
3bdf0f95c6
commit
79a67ae1ec
|
@ -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 New Issue