diff --git a/lib/debug.js b/lib/debug.js index 4b7a711..9b33353 100644 --- a/lib/debug.js +++ b/lib/debug.js @@ -9,9 +9,7 @@ import util from "util"; export class Debug { constructor (opts) { opts ??= {}; - const verb = opts.verbose - ?? opts.default - ?? ""; + const verb = opts.verbose ?? ""; this.levels = new Set(); this.suppress = new Set(); diff --git a/lib/service-client.js b/lib/service-client.js index c99acc5..6d72743 100644 --- a/lib/service-client.js +++ b/lib/service-client.js @@ -41,7 +41,7 @@ export class ServiceClient { : opts; delete this.opts.env; - this.debug = new Debug(opts); + this.debug = new Debug(this.opts); } async init () { diff --git a/package.json b/package.json index 26f646a..4df2d13 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@amrc-factoryplus/service-client", - "version": "1.3.3", + "version": "1.3.4", "description": "", "main": "lib/index.js", "type": "module",