@akc42/app-utils 4.1.0 → 4.1.1
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/debug.js +2 -2
- package/package.json +1 -1
package/debug.js
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
debugDump - perform a dump to the server (and and a clearing out of the buffered info) of the debug calls made to date
|
|
64
64
|
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
import config from './config.js';
|
|
67
67
|
const BUFFER_SIZE = 50;
|
|
68
68
|
const KEY_TOPIC = 'key'; //topic name which will get kept from a full resource buffer when we empty it.
|
|
69
69
|
let buffer = []; //buffer of up to 50 topic/message pairs to allow us to hold some if resource buffer becomes full;
|
|
@@ -137,7 +137,7 @@ function Debug(t) {
|
|
|
137
137
|
}, '');
|
|
138
138
|
if (initialised) performance.mark(this.topic, { detail: message }); //save our message locally regardless of if enabled
|
|
139
139
|
let enabled = false;
|
|
140
|
-
const debugConf =
|
|
140
|
+
const debugConf = config.debug;
|
|
141
141
|
if (debugConf) {
|
|
142
142
|
const topics = debugConf.split(':');
|
|
143
143
|
if (topics.includes(this.topic)) enabled = true;
|