-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add option to retrieve n amount of last lines from log. #604
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
Conversation
* Update control-panel.markdown Info for home-assistant/frontend#604 * Update control-panel.markdown * Update control-panel.markdown
panels/config/zwave/zwave-log.html
Outdated
} else { | ||
this.hass.callApi('GET', 'zwave/ozwlog') | ||
.then((info) => { | ||
var lines = info.split('\n'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not limit log lines in the frontend but instead add support to the backend
c35b1f2
to
8605bb5
Compare
panels/config/zwave/zwave-log.html
Outdated
<paper-button raised on-tap='refreshLog'>Refresh</paper-button> | ||
</div> | ||
<div class='help-text'> | ||
<template is='dom-repeat' items='[[ozwLogs]]' as='state'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're going to create a <pre>
tag per line, why even break it up per line at all on the backend ? Just return a text and just set that to a single <pre>
tag.
You're still using a |
I've moved your lines parameter from url param to query param. That makes more sense. Please test it. |
Let the user choose to retrieve only n amount of last loglines. (Max=1000, min=0(equals the whole log) and step is 10)
