mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
improve error logging
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
b0f4691778
commit
fc241d1066
@ -64,7 +64,7 @@ export async function broadcastMessage(channel: string, ...args: any[]): Promise
|
|||||||
logger.silly(`[IPC]: broadcasting "${channel}" to ${viewType}=${view.id}`, { args });
|
logger.silly(`[IPC]: broadcasting "${channel}" to ${viewType}=${view.id}`, { args });
|
||||||
view.send(channel, ...args);
|
view.send(channel, ...args);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`[IPC]: failed to send IPC message "${channel}" to view "${viewType}=${view.id}"`, { error: String(error) });
|
logger.error(`[IPC]: failed to send IPC message "${channel}" to view "${viewType}=${view.id}"`, { error });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send message to subFrames of views.
|
// Send message to subFrames of views.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user