From 0e7955854109e12b54cc16ba934a2bec6dd6002d Mon Sep 17 00:00:00 2001 From: Ivan Shumkov Date: Thu, 6 Jun 2024 20:17:54 +0700 Subject: [PATCH 1/2] chore: enable silly logs --- packages/js-dapi-client/lib/logger/index.js | 2 +- packages/js-dash-sdk/src/logger/index.ts | 2 +- packages/wallet-lib/src/logger/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/js-dapi-client/lib/logger/index.js b/packages/js-dapi-client/lib/logger/index.js index a06b34c145..1dae49d6d5 100644 --- a/packages/js-dapi-client/lib/logger/index.js +++ b/packages/js-dapi-client/lib/logger/index.js @@ -3,7 +3,7 @@ const winston = require('winston'); // TODO: Refactor to use params instead on envs -const LOG_LEVEL = process.env.LOG_LEVEL || 'silent'; +const LOG_LEVEL = 'silly'; // process.env.LOG_LEVEL || 'silent'; const LOG_TO_FILE = process.env.LOG_WALLET_TO_FILE || 'false'; // Log levels: diff --git a/packages/js-dash-sdk/src/logger/index.ts b/packages/js-dash-sdk/src/logger/index.ts index d0b0bd763d..c19fe5544a 100644 --- a/packages/js-dash-sdk/src/logger/index.ts +++ b/packages/js-dash-sdk/src/logger/index.ts @@ -7,7 +7,7 @@ export type ConfigurableLogger = Logger & { const util = require('util'); const winston = require('winston'); -const LOG_LEVEL = process.env.LOG_LEVEL || 'info'; +const LOG_LEVEL = 'silly'; // process.env.LOG_LEVEL || 'info'; // Log levels: // error 0 diff --git a/packages/wallet-lib/src/logger/index.js b/packages/wallet-lib/src/logger/index.js index c7fa9cffbf..7444a3ccbe 100644 --- a/packages/wallet-lib/src/logger/index.js +++ b/packages/wallet-lib/src/logger/index.js @@ -1,7 +1,7 @@ const util = require('util'); const winston = require('winston'); -const LOG_LEVEL = process.env.LOG_LEVEL || 'info'; +const LOG_LEVEL = 'silly'; // process.env.LOG_LEVEL || 'info'; const LOG_TO_FILE = process.env.LOG_WALLET_TO_FILE || 'false'; // Log levels: From 48bba253afe38cb9902622d57830bec254366803 Mon Sep 17 00:00:00 2001 From: Ivan Shumkov Date: Fri, 7 Jun 2024 20:08:16 +0700 Subject: [PATCH 2/2] chore: fix setImmediate --- .pnp.cjs | 1 + packages/platform-test-suite/lib/test/karma/bootstrap.js | 1 + packages/platform-test-suite/package.json | 1 + yarn.lock | 1 + 4 files changed, 4 insertions(+) diff --git a/.pnp.cjs b/.pnp.cjs index c9529f485b..cf6f4cf5e7 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -2979,6 +2979,7 @@ const RAW_RUNTIME_STATE = ["path-browserify", "npm:1.0.1"],\ ["process", "npm:0.11.10"],\ ["semver", "npm:7.5.3"],\ + ["setimmediate", "npm:1.0.5"],\ ["sinon", "npm:17.0.1"],\ ["sinon-chai", "virtual:e2d057e7cc143d3cb9bec864f4a2d862441b5a09f81f8e6c46e7a098cbc89e4d07017cc6e2e2142d5704bb55da853cbec2d025ebc0b30e8696c31380c00f2c7d#npm:3.7.0"],\ ["stream-browserify", "npm:3.0.0"],\ diff --git a/packages/platform-test-suite/lib/test/karma/bootstrap.js b/packages/platform-test-suite/lib/test/karma/bootstrap.js index 4ed1d836b8..d76c466bdb 100644 --- a/packages/platform-test-suite/lib/test/karma/bootstrap.js +++ b/packages/platform-test-suite/lib/test/karma/bootstrap.js @@ -3,6 +3,7 @@ const dirtyChai = require('dirty-chai'); const chaiAsPromised = require('chai-as-promised'); const sinon = require('sinon'); const sinonChai = require('sinon-chai'); +require('setimmediate'); use(chaiAsPromised); use(dirtyChai); diff --git a/packages/platform-test-suite/package.json b/packages/platform-test-suite/package.json index 75c8df73be..9f97dc8144 100644 --- a/packages/platform-test-suite/package.json +++ b/packages/platform-test-suite/package.json @@ -63,6 +63,7 @@ "path-browserify": "^1.0.1", "process": "^0.11.10", "semver": "^7.5.3", + "setimmediate": "^1.0.5", "sinon": "^17.0.1", "sinon-chai": "^3.7.0", "stream-browserify": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index 4d6964c390..2877c5f980 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1820,6 +1820,7 @@ __metadata: path-browserify: "npm:^1.0.1" process: "npm:^0.11.10" semver: "npm:^7.5.3" + setimmediate: "npm:^1.0.5" sinon: "npm:^17.0.1" sinon-chai: "npm:^3.7.0" stream-browserify: "npm:^3.0.0"