Remove logging.

This commit is contained in:
Michael Teeuw
2020-02-01 19:12:05 +01:00
parent 1315aceb44
commit 561827e896
4 changed files with 4 additions and 8 deletions

View File

@@ -26,12 +26,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Fix calendar time offset for recurring events crossing Daylight Savings Time (ISSUE #1798)
- Fix regression in currentweather module causing 'undefined' to show up when config.hideTemp is false
### Updated
### Changed
- Remove documentation from core repository and link to new dedicated docs site: [docs.magicmirror.builders](https://docs.magicmirror.builders).
- Updated config.js.sample: Corrected some grammar on `config.js.sample` comment section.
- Removed `run-start.sh` script and update start commands:
- To start using electron, use `npm run start`.
- To start in server only mode, use `npm run server`.
- Remove redundant logging from modules.
## [2.10.1] - 2020-01-10

View File

@@ -151,9 +151,9 @@ var Module = Class.extend({
*/
notificationReceived: function (notification, payload, sender) {
if (sender) {
Log.log(this.name + " received a module notification: " + notification + " from sender: " + sender.name);
// Log.log(this.name + " received a module notification: " + notification + " from sender: " + sender.name);
} else {
Log.log(this.name + " received a system notification: " + notification);
// Log.log(this.name + " received a system notification: " + notification);
}
},

View File

@@ -138,8 +138,6 @@ Module.register("calendar", {
this.loaded = true;
} else if (notification === "INCORRECT_URL") {
Log.error("Calendar Error. Incorrect url: " + payload.url);
} else {
Log.log("Calendar received an unknown socket notification: " + notification);
}
this.updateDom(this.config.animationSpeed);

View File

@@ -367,7 +367,6 @@ Module.register("newsfeed",{
},
notificationReceived: function(notification, payload, sender) {
Log.info(this.name + " - received notification: " + notification);
if(notification === "ARTICLE_NEXT"){
var before = this.activeItem;
this.activeItem++;
@@ -425,8 +424,6 @@ Module.register("newsfeed",{
desc: this.newsItems[this.activeItem].description,
url: this.getActiveItemURL()
});
} else {
Log.info(this.name + " - unknown notification, ignoring: " + notification);
}
},