Logging library.
Go to file
Gorka Eguileor 94b9dc32ec Fix logging in eventlet native threads
There is a bug in eventlet where logging within a native thread can lead
to a deadlock situation: https://github.com/eventlet/eventlet/issues/432

When encountered with this issue some projects in OpenStack using
oslo.log, eg. Cinder, resolve them by removing any logging withing
native threads.

There is actually a better approach. The Swift team came up with a
solution a long time ago [1], and in this patch that fix is included as
part of the setup method, but will only be run if the eventlet library
has already been loaded.

This patch adds the eventlet library as a testing dependency for the
PipeMutext unit tests.

[1]: 69c715c505

Closes-Bug: #1983863
Change-Id: Iac1b0891ae584ce4b95964e6cdc0ff2483a4e57d
2022-08-08 17:09:50 +02:00
doc remove unicode from code 2021-01-03 16:09:31 +08:00
oslo_log Fix logging in eventlet native threads 2022-08-08 17:09:50 +02:00
releasenotes Fix logging in eventlet native threads 2022-08-08 17:09:50 +02:00
.coveragerc Fix coverage configuration and execution 2015-10-05 17:22:34 -04:00
.gitignore Ignore releasenote artifacts files. 2020-01-31 10:55:10 +01:00
.gitreview OpenDev Migration Patch 2019-04-19 19:48:02 +00:00
.mailmap exported from oslo-incubator by graduate.sh 2014-08-25 14:42:22 -04:00
.pre-commit-config.yaml Move flake8 as a pre-commit local target. 2021-03-22 10:47:05 +01:00
.stestr.conf Migrate to stestr 2018-08-10 15:57:52 -04:00
.zuul.yaml Update CI to use unversioned jobs template 2022-03-15 15:07:19 +00:00
CONTRIBUTING.rst Align contributing doc with oslo's policy 2020-05-04 18:24:59 +02:00
HACKING.rst Update URLs according to document migration 2017-07-11 22:46:53 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2014-08-25 14:42:22 -04:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-30 13:38:11 +08:00
requirements.txt Add system scope information to default user identity string 2022-04-19 17:08:58 +09:00
setup.cfg Drop python3.6/3.7 support in testing runtime 2022-05-05 16:13:06 +02:00
setup.py remove outdated header 2020-02-10 18:37:12 +01:00
test-requirements.txt Fix logging in eventlet native threads 2022-08-08 17:09:50 +02:00
tox.ini Drop lower-constraints 2021-04-16 10:25:26 +00:00

README.rst

Team and repository tags

image

oslo.log -- Oslo Logging Library

Latest Version

Downloads

The oslo.log (logging) configuration library provides standardized configuration for all openstack projects. It also provides custom formatters, handlers and support for context specific logging (like resource id's etc).