Bug 1378209 - Add DEBUG log line for received observer notifications. r=automatedtester

For debugging purposes it would be useful to see which observer
notifications have been received and handled by the Marionette
component.

MozReview-Commit-ID: 1EucCEjOXhu

--HG--
extra : rebase_source : 09864144c4b92d1652aee6b62c72b29d692bd2ce
This commit is contained in:
Henrik Skupin 2017-07-05 10:35:28 +02:00
parent dccfbfd03e
commit be27f8498f

View File

@ -159,6 +159,8 @@ MarionetteComponent.prototype.handle = function(cmdLine) {
};
MarionetteComponent.prototype.observe = function(subject, topic, data) {
this.logger.debug(`Received observer notification "${topic}"`);
switch (topic) {
case "command-line-startup":
Services.obs.removeObserver(this, topic);