chore(buffer): final adjustments to buffer before deploy

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-18 22:48:52 +02:00
parent 13a83155cf
commit dfe00040de
12 changed files with 21972 additions and 54 deletions

View File

@@ -19,18 +19,18 @@ export function createLogger({ name }: { name: string }): ILogger {
});
const errorFormatter = winston.format((info) => {
if (info.error instanceof Error) {
return {
...info,
error: prettyError(info.error),
};
}
if (info instanceof Error) {
return {
...info,
...prettyError(info),
};
}
if (info.error) {
return {
...info,
error: prettyError(info.error),
};
}
return info;
});