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

Trying with username logs too much data if the user has a picture #539

Open
agross opened this issue Jun 26, 2024 · 0 comments
Open

Trying with username logs too much data if the user has a picture #539

agross opened this issue Jun 26, 2024 · 0 comments

Comments

@agross
Copy link
Contributor

agross commented Jun 26, 2024

Describe the bug
Whenever a state is changed on the Lovelace UI the adapter logs this line:

2024-06-26 11:11:56.423  - warn: lovelace.0 (608) Could not get user id for agross - Trying with username{"iobId":"system.user.agross","name":"Alexander Groß","color":false,"picture":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QxwRXhpZgAASUkqAAgAAAACADIBAgAUAAAAJgAAAGmHBAABAAAAOgAAAEAAAAAyMDE4OjAx...","description":""}

Since my user has a high-resolution picture assigned the log line spans multiple screens (I use tail -f to watch my logs). That means that more relevant log output is hidden by that big blob of base64-encoded image.

I'd prefer if only basic user info would be logged, like iobId and maybe the name.

To Reproduce
Steps to reproduce the behavior:

  1. Install Lovelace with auth
  2. Change a state

Versions:

  • Adapter version: 4.1.10
  • JS-Controller version: 5.0.19
  • Node version:
  • Operating system: docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant