bdy 1.14.6-stage → 1.14.7-stage

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.14.6-stage",
4
+ "version": "1.14.7-stage",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -206,6 +206,10 @@ class AgentManagerClass {
206
206
  return;
207
207
  }
208
208
  logger_1.default.setDebug(!!data.debug);
209
+ logger_1.default.info(`MANAGER REQUEST: change debug to ${!!data.debug}`);
210
+ this.serverOutput(res, {
211
+ success: true,
212
+ });
209
213
  }
210
214
  async processTunnelStop(req, res) {
211
215
  if (!this.agent) {
@@ -35,6 +35,7 @@ class Logger {
35
35
  }
36
36
  setDebug(debug) {
37
37
  this.debugOn = debug;
38
+ this.getPino().level = this.debugOn ? 'debug' : 'info';
38
39
  }
39
40
  getPino() {
40
41
  if (!this.p) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.14.6-stage",
4
+ "version": "1.14.7-stage",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {