[Bug 266523] logging.handlers.SysLogHandler no longer works with 2+ level hierarchical logging provided-name in TAG

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 20 Sep 2022 19:28:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266523

Enji Cooper <ngie@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|logging.handlers.Sys        |logging.handlers.SysLogHand
                   |                            |ler no longer works with 2+
                   |                            |level hierarchical logging
                   |                            |provided-name in TAG

--- Comment #1 from Enji Cooper <ngie@FreeBSD.org> ---
The logging package in python supports hierarchical logger names, e.g.,
foo.bar.baz. The beforementioned logger name [can] inherit settings from "foo"
or "foo.bar".

The changes made in 1a874a126a54fdc188cebd0c58579851c37d1814 unfortunately
broke this capability, breaking application code in the process which handles
filtering out specific names to specific log sinks; now all logging with dotted
names goes to /var/log/messages .

The strictness was relaxed in 3b4cc56e524ac947ba0e6571e2c455139c2839ec for PRI.
Similar treatment needs to be applied for TAG as well.

References:
- https://docs.python.org/3/library/logging.html#logger-objects

-- 
You are receiving this mail because:
You are the assignee for the bug.