refactor(logger): included error in the stack version so we dont have to remove it all
This commit is contained in:
@@ -37,7 +37,7 @@ const dbStream = new Writable({
|
|||||||
subModule: obj?.subModule?.toLowerCase(),
|
subModule: obj?.subModule?.toLowerCase(),
|
||||||
hostname: obj?.hostname?.toLowerCase(),
|
hostname: obj?.hostname?.toLowerCase(),
|
||||||
message: obj.msg,
|
message: obj.msg,
|
||||||
stack: obj?.stack,
|
stack: obj?.stack || obj?.error, // this will add in the error or stack depending on how we pass it.
|
||||||
})
|
})
|
||||||
.returning(),
|
.returning(),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user