Debian Patches

Status for python-oslo.log/8.3.2-5

Patch Description Author Forwarded Bugs Origin Last update
install-missing-files.patch install all files Thomas Goirand <zigo@debian.org> no 2026-02-25
get-binary-name-from-sys-argv-0.patch Get the binary name from sys.argv[0] When log_dir is set but log_file isn't, oslo.log names the log file after
the running program. To find that name, _get_binary_name() used the
basename() of the file found at the bottom of the call stack
(inspect.stack()[-1]), which is the file that started the Python
interpreter.
.
Under uwsgi (module + lazy-apps) this belongs to the frozen importlib
machinery, so services log into a file literally named
'<frozen importlib._bootstrap>.log', and the syslog and journald handlers
use the same garbage as program name, defeating any filtering or routing
by program name.
.
This patch uses sys.argv[0] instead. Under uwsgi, it derives the name from
the uwsgi "module" option (eg: heat.wsgi.cfn for heat.wsgi.cfn:application),
falling back to the uwsgi binary name if there is no module option. If the
name guessing fails for any reason, the name becomes "log-file-not-set", so
that the service logs into a "log-file-not-set.log" file, making it obvious
for users that log_file (or --log-file) must be set.

diff --git a/oslo_log/handlers.py b/oslo_log/handlers.py
index 9d21524..697c3fc 100644
Thomas Goirand <zigo@debian.org> no upstream, https://review.opendev.org/c/openstack/oslo.log/+/1010489 2026-10-16

All known versions for source package 'python-oslo.log'

Links