Closed fender4645 closed 4 months ago
I'm sorry but it's not really clear to me what your question is or what problem you are having. Can you please clarify what problem you are having as your notes talk about logs, state that you have always had logs, and then show a snippet with logs working as expected if nothing is set, thus I don't see any actual problem.
OK, sorry, I only read the description, but not the title, so your issue is that you don't want debug logging, which is fine, but, as stated in the documentation, the Docker version defaults to "ring-*" if DEBUG isn't defined, so the behavior you describe is as expected. Simply define DEBUG to anything else, for example, DEBUG="disabled" although theoretically, even using DEBUG='' should work, and it will disable logging.
Sigh. I missed that line in the docs about DEBUG being on by default. Changed it and now it looks good. Will this disable all logging? I was hoping for a middle-ground like INFO or WARNING. Either way, appreciate your help and this project.
The docs cover the categories of messages you can select. Right now there are no "INFO" or "WARNING" message categories, and I doubt there will ever be. Errors outside of ring-mqtt (from Node itself for example) will always be logged, the DEBUG environment variable only controls what message types from ring-mqtt will be logged.
Realistically, I don't really understand the concern about log size since log rotation and maximum log size is easily configured in Docker itself, either globally or on a per-container basis, so you don't have to keep any more logs than you want to.
Describe the Issue
It's very possible there's an issue on my end that I'm missing. I've been using this for 5+ years so I'm wondering if it's something I enabled years ago and don't remember. But I've always been getting debug output (for all categories) for as long as I can remember. This causes the docker logs to grow to almost a gig in size. I've verified both in my docker-compose file and within the container that the DEBUG env variable is not set. Is there any place else this could be configured?
Steps take so far
Validated it's not set in my compose file not inside the container itself
Log Output
Output from printenv inside the container:
Docker compose file:
Snippet from beginning of log:
Install Type
Docker
Version
5.6.3
Operating System
Ubuntu
Architecture
x86_64