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

HA AddOn: Concept how to handle the proxy logs in AddOn mode #215

Closed
s-allius opened this issue Dec 2, 2024 · 3 comments
Closed

HA AddOn: Concept how to handle the proxy logs in AddOn mode #215

s-allius opened this issue Dec 2, 2024 · 3 comments
Assignees
Labels
Home Assistant add-on This issue is about the operation as HA add-on
Milestone

Comments

@s-allius
Copy link
Owner

s-allius commented Dec 2, 2024

The proxy writes a lot of information in log files. These are huge (5..8MB per day). We need a concept how we would handle this:

  • we can disable all log
  • we can automatically delete the files after x days
  • we can use ...?
@s-allius s-allius added this to the Version 0.12 milestone Dec 2, 2024
@s-allius s-allius added the Home Assistant add-on This issue is about the operation as HA add-on label Dec 2, 2024
@s-allius s-allius changed the title HA AddOn: Concept how to handle the proxy logs in an AddOn HA AddOn: Concept how to handle the proxy logs in AddOn mode Dec 2, 2024
@mime24
Copy link
Collaborator

mime24 commented Dec 7, 2024

I mounted the add-on log folder for testpurpose. but, this is something we could take over to the actual add-on config. this would give users the possibility to see the logs.
this in combination with a switch to enable/disable might be meaningful.

let me keep this test for some days and I'll come with a more precise suggestion.

@mime24
Copy link
Collaborator

mime24 commented Dec 15, 2024

latest concept is to have a log folder that is mounted to Homeassistant "addon_configs" (accessible e.g. via SMB or Studio Code Server Add-on,...)
to prevent the system from endless storing, the files older than (2) days get automatically removed.
I'm personally already happy with this. :)

just for completeness, we could develop following further steps:

variant log-files in mounted folder

we could give a option in configuration tab to configure the number of days to keep log-files.

variant debug-mode in Add-on Log

we could have a switch in add-on config that indicates the proxy to run in debug mode. this would plot debug messages to the Add-on (Supervisor) Logservice.
if we implement this as radio button/list option (Log-Level), we could also set it to a ERROR mode where the usual connect/disconnect messages doesn't appear.

@s-allius
Copy link
Owner Author

closed with #243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Home Assistant add-on This issue is about the operation as HA add-on
Projects
None yet
Development

No branches or pull requests

2 participants