@iobroker/socket-classes 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -69,6 +69,9 @@ io.close();
69
69
  -->
70
70
 
71
71
  ## Changelog
72
+ ### 0.4.4 (2022-06-09)
73
+ * (bluefox) Do not show requireLog message
74
+
72
75
  ### 0.4.3 (2022-06-03)
73
76
  * (bluefox) Allowed call of getAdapterInstances for non admin
74
77
 
@@ -253,6 +253,10 @@ class SocketCommands {
253
253
  }
254
254
  }
255
255
 
256
+ isLogEnabled() {
257
+ return this.logEnabled;
258
+ }
259
+
256
260
  subscribe(socket, type, pattern, patternFile) {
257
261
  this.subscribes[type] = this.subscribes[type] || {};
258
262
 
@@ -266,7 +266,7 @@ class SocketCommon {
266
266
  this._updateConnectedInfo();
267
267
 
268
268
  // Disable logging if no one browser is connected
269
- if (this.adapter.requireLog) {
269
+ if (this.adapter.requireLog && this.commands && this.commands.isLogEnabled()) {
270
270
  this.adapter.log.debug('Disable logging, because no one socket connected');
271
271
  this.adapter.requireLog(!!(this.server && this.server.engine && this.server.engine.clientsCount));
272
272
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/socket-classes",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "ioBroker server-side web sockets",
5
5
  "author": {
6
6
  "name": "bluefox",