Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[logviewer] Support history #3030

Merged
merged 1 commit into from
Feb 15, 2025
Merged

Conversation

cdjackson
Copy link
Contributor

This is the UI side of the enhancements to a) receive historical logs from the OH server, and b) improve performance by receiving arrays of log entries rather than just single entries.

It does work with the existing log system since it will work with both single log entries (as currently used) and arrays of logs. Due to the change in format, the filter requests do log a parse error since it now uses a DTO with a number of bits of data rather than just an array of loggers, but this doesn't impact anything else. Therefore it is safe to merge this before the core is merged (although it's probably best to wait a little to ensure there's no major comments to the core side!).

This also fixes a minor bug where the number of filtered logs may be incorrectly displayed.

With this and the core changes, I can display full zigbee debug - it's about 2000 lines in 15 seconds (or put another way, the log buffer shows about 15 seconds of data). The log remains responsive (I can change the logging levels back). Possibly the log buffer can/should be increased more than 2000 entries, but that's for another day...

Core PR coming soon...

Signed-off-by: Chris Jackson <chris@cd-jackson.com>
Copy link

relativeci bot commented Jan 20, 2025

#2734 Bundle Size — 10.98MiB (~+0.01%).

2c8d821(current) vs 7dd7f31 main#2733(baseline)

Warning

Bundle contains 2 duplicate packages – View duplicate packages

Bundle metrics  Change 1 change
                 Current
#2734
     Baseline
#2733
No change  Initial JS 1.9MiB 1.9MiB
No change  Initial CSS 577.21KiB 577.21KiB
Change  Cache Invalidation 17.39% 18.04%
No change  Chunks 227 227
No change  Assets 250 250
No change  Modules 2952 2952
No change  Duplicate Modules 154 154
No change  Duplicate Code 1.8% 1.8%
No change  Packages 98 98
No change  Duplicate Packages 2 2
Bundle size by type  Change 1 change Regression 1 regression
                 Current
#2734
     Baseline
#2733
Regression  JS 9.19MiB (~+0.01%) 9.19MiB
No change  CSS 867.33KiB 867.33KiB
No change  Fonts 526.1KiB 526.1KiB
No change  Media 295.6KiB 295.6KiB
No change  IMG 140.74KiB 140.74KiB
No change  HTML 1.38KiB 1.38KiB
No change  Other 871B 871B

Bundle analysis reportBranch cdjackson:logviewer-historyProject dashboard


Generated by RelativeCIDocumentationReport issue

Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

core PR has been merged.

@kaikreuzer kaikreuzer added this to the 5.0 milestone Feb 15, 2025
@kaikreuzer kaikreuzer merged commit 481ef4d into openhab:main Feb 15, 2025
5 checks passed
Copy link
Contributor

@florian-h05 florian-h05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@kaikreuzer You were a bit too fast with merging, I would have preferred to merge this myself so I can take a look before merging 😉

@kaikreuzer
Copy link
Member

@florian-h05 Sorry, will leave it in future to you. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request main ui Main UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants