Skip to content

Commit eee7152

Browse files
committed
feat(logs): Refactor logs for json_copy
1 parent 85c039a commit eee7152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/lib/json_copy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"use strict";
22

3-
const plutils = require('./utilities');
3+
const logger = require('./log');
44
const json_copy = (data, callee) => {
55
try {
66
return JSON.parse(JSON.stringify(data));
77
} catch (e) {
88
//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`);
9+
logger.warning(`JSON provided by ${callee} is invalid and cannot be copied`);
1010
throw (e);
1111
}
1212
};

0 commit comments

Comments
 (0)