20613: Update unconfigured logger check to accommodate NullHandler 20613-googleapiclient-init-logs
authorBrett Smith <brett.smith@curii.com>
Wed, 7 Jun 2023 19:00:43 +0000 (15:00 -0400)
committerBrett Smith <brett.smith@curii.com>
Wed, 7 Jun 2023 19:00:43 +0000 (15:00 -0400)
commit150de14b0b265d86df11a04201320944d04fe3a5
treedd36f0dd230b38472872a7d6abeb6b53b292e45b
parent3f23131d66a0467b2bee74006d61ec3e25a153bb
20613: Update unconfigured logger check to accommodate NullHandler

googleapiclient sets up its own NullHandler, as recommended by the
logging documentation. That makes the hasHandlers() test not work as
intended, so instead we traverse the hierarchy ourselves looking for a
real handler.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
sdk/python/arvados/api.py
sdk/python/tests/test_api.py