1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/core/src/common
Sami Tiilikainen 48db54ec9e
Renderer file logging through IPC (#7300)
* Renderer file logging through IPC

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove pagehide event listener as it may cause UI to freeze

Pagehide was needed in cluster frame to better handle main frame close/reload situation. But even empty pagehide listener in cluster frame seems to freeze the UI at least on some situations (multiple clusters open).

Beforeunload is not always executed in cluster frame when main frame is reloaded/closed, leaving log files open. To fix that, `stopIpcLoggingInjectable` is introduced to close all log files.

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove unnecessary formatting changes

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Lint fix

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Winston logger override

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove usage of doGeneralOverrides as it has been removed

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Update imports to match the new base

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove unnecessary id

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Review improvements

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Extract beforeunload listener to injectable

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Typo fix

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

---------

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
2023-03-21 15:04:22 -04:00
..
__tests__ Cleanup 'Cluster' to remove environment specific details (#6951) 2023-03-10 09:37:39 +02:00
app-event-bus Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
app-paths Electron 22.3.3 (#7389) 2023-03-21 11:07:27 -04:00
base-store Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
catalog Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
catalog-entities Move deactivating a cluster into injectable IPC (#7356) 2023-03-15 08:31:38 -04:00
certificate Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
cluster Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
cluster-store Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
directory-for-lens-local-storage Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
error-reporting Electron 22.3.3 (#7389) 2023-03-21 11:07:27 -04:00
fetch Remove direct dependency on 'abort-controller' package (#7366) 2023-03-17 12:59:57 -04:00
front-end-routing Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
fs Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
get-configuration-file-model Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
helm Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
hotbars Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
initializable-state Simplify test setup by removing option for global overrides (#7302) 2023-03-07 12:23:57 -05:00
ipc Move deactivating a cluster into injectable IPC (#7356) 2023-03-15 08:31:38 -04:00
k8s Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
k8s-api Remove direct dependency on 'abort-controller' package (#7366) 2023-03-17 12:59:57 -04:00
kube-helpers Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
logger Renderer file logging through IPC (#7300) 2023-03-21 15:04:22 -04:00
os Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
path Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
protocol-handler Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
root-frame Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
terminal Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
user-store Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
utils Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
vars Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
weblinks-store Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
.gitkeep Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
cluster-frames.injectable.ts Move deactivating a cluster into injectable IPC (#7356) 2023-03-15 08:31:38 -04:00
cluster-types.ts Cleanup 'Cluster' to remove environment specific details (#6951) 2023-03-10 09:37:39 +02:00
event-emitter.ts Fix building docs and verify:docs workflow (#7013) 2023-01-25 13:59:21 -05:00
item.store.ts Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
kube-helpers.ts Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
log-error.global-override-for-injectable.ts Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
log-error.injectable.ts White-listing of telemetry params (#7262) 2023-03-06 13:14:27 +02:00
logger.global-override-for-injectable.ts Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
logger.injectable.ts Renderer file logging through IPC (#7300) 2023-03-21 15:04:22 -04:00
logger.ts Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
rbac.ts Replication Controllers (new resource view) (#7154) 2023-02-16 07:48:24 -05:00
vars.ts Remove all references to slack (#7233) 2023-02-24 17:04:15 -05:00
winston-logger.global-override-for-injectable.ts Renderer file logging through IPC (#7300) 2023-03-21 15:04:22 -04:00
winston-logger.injectable.ts Renderer file logging through IPC (#7300) 2023-03-21 15:04:22 -04:00