`Trying with username` logs too much data if the user has a picture
Opened this issue · 0 comments
agross commented
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:
- Install Lovelace with auth
- Change a state
Versions:
- Adapter version: 4.1.10
- JS-Controller version: 5.0.19
- Node version:
- Operating system: docker