refactor(logger): included error in the stack version so we dont have to remove it all

This commit is contained in:
2026-06-01 14:20:48 -05:00
parent 3ef0f230dd
commit da87e2e1d3

View File

@@ -37,7 +37,7 @@ const dbStream = new Writable({
subModule: obj?.subModule?.toLowerCase(),
hostname: obj?.hostname?.toLowerCase(),
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(),
);