We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85c039a commit eee7152Copy full SHA for eee7152
core/lib/json_copy.js
@@ -1,12 +1,12 @@
1
"use strict";
2
3
-const plutils = require('./utilities');
+const logger = require('./log');
4
const json_copy = (data, callee) => {
5
try {
6
return JSON.parse(JSON.stringify(data));
7
} catch (e) {
8
//this is unlikely to be hit due to the passed in data already being loaded using JSON parsers
9
- plutils.warning(`JSON provided by ${callee} is invalid and cannot be copied`);
+ logger.warning(`JSON provided by ${callee} is invalid and cannot be copied`);
10
throw (e);
11
}
12
};
0 commit comments