glance icon indicating copy to clipboard operation
glance copied to clipboard

Debug logging

Open bleetube opened this issue 6 months ago • 1 comments

Sorry for the stupid question, but how do I enable debug logging? I'm curious to know how often my widgets are making http requests. I tried running glance with LOG_LEVEL=debug but didn't see anything after that. I searched the repo for phrases like "log" or "logging" and checked the configuration documentation. I'm not a go dev but I did see that "log/slog" is used so I imagine there is already some way to turn it on?

I'm using glance 5.1 via systemd and looking for logs in systemd journal. This is abolut all I ever see:

Aug 12 20:08:48 litten systemd[1]: Started glance.service.
Aug 12 20:08:48 litten glance[160400]: 2024/08/12 20:08:48 INFO Serving assets path=/var/lib/glance/assets
Aug 12 20:08:48 litten glance[160400]: 2024/08/12 20:08:48 INFO Starting server host=127.0.0.1 port=8032

bleetube avatar Aug 13 '24 03:08 bleetube