[chirp_devel] chirp logging module
Dan Smith
Mon Jul 20 09:57:02 PDT 2015
> I’m basically doing this:
>
> logger = logging.getLogger()
> logger.setLevel(logging.DEBUG)
>
> My understanding is that this should get an instance of the root logger, and set the level of all children, but this doesnt seem to be happening.
It's confusing, but I think that child propagation only works if it is
set on the parent before the child is ever requested. So, if the child
is instantiated at import time in some module and you're setting the
level later than that, you won't magically update the child.
--Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20150720/8760d3ac/attachment-0001.bin
More information about the chirp_devel
mailing list