mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-20 01:18:52 +00:00
if not enabled return original object
This commit is contained in:
parent
5f94848d05
commit
f15e36a7c6
@ -20,6 +20,7 @@ class StructLog {
|
||||
}
|
||||
|
||||
tagObject(ogObject, logId) {
|
||||
if (!this.isEnabled()) return ogObject;
|
||||
let newObject = Object.assign({}, ogObject, { logId });
|
||||
Object.setPrototypeOf(newObject, ogObject);
|
||||
return newObject;
|
||||
|
Loading…
x
Reference in New Issue
Block a user