Closed invidian closed 4 years ago
Hi @invidian !
Thanks for reporting!
This is surely a regression since #283.
The bug origins in a call to logging.basicConfig
being done before the configuration set.
We should avoid using logging
default logger and use a custom one to prevent unexpected behavior.
What happened
It seems that since fe3dba90d8cc6f947846e6a099a2562e7c2f88b1,
--log DEBUG
has no effect when runningkube-hunter
.Steps to reproduce:
docker run -it $(docker build . | tail -n 1 | cut -d" " -f3) --log DEBUG --pod
Reverting to fd4d79a8534fe3967162c18770a208871d8403c9 restores proper logging behavior.
Expected behavior
Debug messages should show up when
--log DEBUG
is specified.