diff --git a/src/common/ipc.ts b/src/common/ipc.ts index 57fff4d4da..de2126e6d7 100644 --- a/src/common/ipc.ts +++ b/src/common/ipc.ts @@ -31,7 +31,7 @@ export function sendMessage({ channel, webContentId, filter, args = [] }: IpcMes } views.forEach(webContent => { const type = webContent.getType(); - logger.info(`[IPC]: sending message "${channel}" to webContentId(${type})=${webContent.id}`); + logger.info(`[IPC]: sending message "${channel}" to ${type}=${webContent.id}`); webContent.send(channel, ...[args].flat()); }) } diff --git a/src/main/cluster.ts b/src/main/cluster.ts index 987cb5d50e..33e0edcea0 100644 --- a/src/main/cluster.ts +++ b/src/main/cluster.ts @@ -312,7 +312,7 @@ export class Cluster implements ClusterModel { // serializable full-featured state of the cluster getState(): ClusterState { - return { + const state: ClusterState = { ...this.toJSON(), apiUrl: this.apiUrl, online: this.online, @@ -324,6 +324,9 @@ export class Cluster implements ClusterModel { isAdmin: this.isAdmin, features: this.features, eventCount: this.eventCount, - } + }; + return toJS(state, { + recurseEverything: true + }) } }