Add winston formatting support for error causes

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-11-15 09:40:51 -05:00
1 parent 86ac417cab
commit cd8a6f8dcc
7 files changed
+202 -27

No files matched your search

@@ -107,7 +107,7 @@ export class KubeWatchApi {
unsubscribe.push(store.subscribe({ onLoadFailure, abortController: childController }));
} catch (error) {
if (!(error instanceof DOMException)) {
this.log(Object.assign(new Error("Loading stores has failed"), { cause: error }), {
this.log(new Error("Loading stores has failed", { cause: error }), {
meta: { store, namespaces },
});
}