openhab / openhab-docker

Repository for building Docker containers for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
209 stars 128 forks source link

stderr is flooded with a lot of debug logs #346

Closed HolgerHees closed 3 years ago

HolgerHees commented 3 years ago

I use docker with jounald integration and now, everytime I restart the container, my logs are flooded with error logs which should be debug logs printed out to stdout

I think, the reason is that the entrypoint bash skript is started in trace mode (bash -x). Can we make this behavior configurable via env variables?

wborn commented 3 years ago

What debug logging do you see?

HolgerHees commented 3 years ago

I see all shell commands printed out to stderr before they are executed. This is a behavior that happens if you run bash shell in trace mode.

Am Mi., 20. Jan. 2021 um 09:19 Uhr schrieb Wouter Born < notifications@github.com>:

What debug logging do you see?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/openhab/openhab-docker/issues/346#issuecomment-763423323, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLLGRH3VX4TUWBB3PIHA7TS22GYNANCNFSM4WI23P4A .

wborn commented 3 years ago

Yes it helps with troubleshooting issues for newbies. But maybe we can add an option to suppress it for more experienced users.

Adding an option for skipping the ownership changes is also on my todo list as it may not always be useful and also takes a lot of time when starting the containers on SBCs with slow storage.