Browse Source

Small change to the station skip debugging.

KrisVos130 8 years ago
parent
commit
2a517e734e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/logic/notifications.js

+ 1 - 1
backend/logic/notifications.js

@@ -61,8 +61,8 @@ const lib = {
 	 * @return {Object} - the subscription object
 	 */
 	subscribe: (name, cb, unique = false, station) => {
+		logger.stationIssue(`SUBSCRIBE - Name: ${name}; Key: ${crypto.createHash('md5').update(`_notification:${name}_`).digest('hex')}, StationId: ${station._id}; StationName: ${station.name}; Unique: ${unique}; SubscribtionExists: ${subscriptions.find((subscription) => subscription.originalName == name)};`);
 		if (unique && subscriptions.find((subscription) => subscription.originalName == name)) return;
-		logger.stationIssue(`SUBSCRIBE - Name: ${name}; Key: ${crypto.createHash('md5').update(`_notification:${name}_`).digest('hex')}, StationId: ${station._id}; StationName: ${station.name}`);
 		let subscription = { originalName: name, name: crypto.createHash('md5').update(`_notification:${name}_`).digest('hex'), cb };
 		subscriptions.push(subscription);
 		return subscription;