1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages
Sami Tiilikainen 69b132300c
Renderer file logging through IPC (#7499)
* 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>

* Behavioural tests and log file rename

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

* Update messaging to work with new base

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

* Move files to feature

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

---------

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
2023-04-04 08:11:06 -04:00
..
bump-version-for-cron Get dev mode fixed (#7447) 2023-03-31 15:30:21 -04:00
business-features/keyboard-shortcuts Introduce Feature for Keyboard Shortcuts (#7442) 2023-04-03 08:23:42 -04:00
cluster-settings Bump rimraf from 4.4.0 to 4.4.1 (#7406) 2023-03-31 09:09:58 -04:00
core Renderer file logging through IPC (#7499) 2023-04-04 08:11:06 -04:00
ensure-binaries Get dev mode fixed (#7447) 2023-03-31 15:30:21 -04:00
extension-api Bump rimraf from 4.4.0 to 4.4.1 (#7406) 2023-03-31 09:09:58 -04:00
generate-tray-icons Get dev mode fixed (#7447) 2023-03-31 15:30:21 -04:00
infrastructure Webpack config fixes (#7423) 2023-04-04 09:36:02 +03:00
legacy-extension-example Get dev mode fixed (#7447) 2023-03-31 15:30:21 -04:00
node-fetch Bump rimraf from 4.4.0 to 4.4.1 (#7406) 2023-03-31 09:09:58 -04:00
open-lens Bump playwright from 1.31.2 to 1.32.1 (#7460) 2023-04-03 08:28:29 -04:00
release-tool fix: Add check in release-tool for no relevant PRs (#7478) 2023-04-03 13:05:04 -04:00
semver Bump rimraf from 4.4.0 to 4.4.1 (#7406) 2023-03-31 09:09:58 -04:00
technical-features Get dev mode fixed (#7447) 2023-03-31 15:30:21 -04:00
utility-features Get dev mode fixed (#7447) 2023-03-31 15:30:21 -04:00