| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | bpo-35046: do only one system call per line (logging.StreamHandler) ↵ | Miss Islington (bot) | 2018-10-23 | 1 | -2/+2 |
| | | | | | | (GH-10042) (GH-10050) (cherry picked from commit b7d62050e7d5fc208ae7673613da4f1f2bc565c4) | ||||
| * | bpo-6721: Hold logging locks across fork() (GH-4071) (#9291) | Miss Islington (bot) | 2018-10-07 | 1 | -0/+50 |
| | | | | | | | | | | | | | bpo-6721: When os.fork() was called while another thread holds a logging lock, the child process may deadlock when it tries to log. This fixes that by acquiring all logging locks before fork and releasing them afterwards. A regression test that fails before this change is included. Within the new unittest itself: There is a small _potential_ due to mixing of fork and a thread in the child process if the parent's thread happened to hold a non-reentrant library call lock (malloc?) when the os.fork() happens. buildbots and time will tell if this actually manifests itself in this test or not. :/ A functionality test that avoids that would be a challenge. An alternate test that isn't trying to produce the deadlock itself but just checking that the release and acquire calls are made would be the next best alternative if so. (cherry picked from commit 19003841e965bbf56fd06824d6093620c1b66f9e) Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google] | ||||
| * | bpo-34334: Don't log traceback twice in QueueHandler (GH-9537) (GH-9581) | Miss Islington (bot) | 2018-10-07 | 1 | -2/+3 |
| | | | | | | (cherry picked from commit d345bb4d9b6e16c681cd8a4e1fff94ecd6b0bb09) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> | ||||
| * | bpo-34415: Updated logging.Formatter docstring. (GH-8811) (GH-8817) | Miss Islington (bot) | 2018-08-19 | 1 | -1/+2 |
| | | | | | (cherry picked from commit d3d3171da895d8cb880f23fae6be778f0ac23be7) | ||||
| * | bpo-33978: Close existing handlers before logging (re-)configuration. ↵ | Miss Islington (bot) | 2018-07-02 | 1 | -4/+11 |
| | | | | | | | | (GH-8008) (GH-8044) (cherry picked from commit 087570af6d5d39b51bdd5e660a53903960e58678) Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com> | ||||
| * | bpo-33400: Clarified documentation to indicate no strict adherence to ISO ↵ | Miss Islington (bot) | 2018-05-28 | 1 | -8/+9 |
| | | | | | | | | 8601. (GH-6702) (GH-6704) (cherry picked from commit c4994dc00d9828a99510f3851da93b0e1c18361d) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> | ||||
| * | Revert unneccessary changes made in bpo-30296 and apply other improvements. ↵ | Miss Islington (bot) | 2018-02-26 | 1 | -2/+2 |
| | | | | | | | | (GH-2624) (cherry picked from commit 3f2e6f15d64d81633b1fc0b308afc0d6e9026b61) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
| * | bpo-30904: Removed duplicated Host: header. (#4465) | Vinay Sajip | 2017-11-19 | 1 | -1/+3 |
| | | |||||
| * | Changed lambda to str.strip in _strip_spaces in logging.config (#4332) | sanjayp | 2017-11-15 | 1 | -2/+2 |
| | | |||||
| * | bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812) | Lovesh Harchandani | 2017-10-27 | 1 | -1/+1 |
| | | | | TimedRotatingFileHandler.getFilesToDelete() now sorts only when needed. | ||||
| * | bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (#4044) | Łukasz Langa | 2017-10-19 | 1 | -1/+5 |
| | | | | | | | | | | | | This used to be the case on Python 2. Commit 212b590e118e3650b596917021ed9612a918180b changed the implementation for Python 3, making the `log()` method of LogAdapter call `logger._log()` directly. This makes nested log adapters not execute their ``process()`` method. This patch fixes the issue. Also, now proxying `name`, too, to make `repr()` work with nested log adapters. New tests added. | ||||
| * | bpo-31457: Make the `LoggerAdapter.manager` property settable (#4042) | Łukasz Langa | 2017-10-19 | 1 | -1/+1 |
| | | | | | Due to a bug in the initial fix, the setter was in fact creating a different property. This is now fixed. | ||||
| * | bpo-31457: Allow for nested LoggerAdapter objects (#3551) | Łukasz Langa | 2017-09-14 | 1 | -0/+21 |
| | | | | | | | Some of the proxied methods use internal Logger state which isn't proxied, causing failures if an adapter is applied to another adapter. This commit fixes the issue, adds a new test for the use case. | ||||
| * | bpo-30830: logging.config.listen() calls server_close() (#3524) | Victor Stinner | 2017-09-13 | 1 | -1/+1 |
| | | | | | | | | | | | The ConfigSocketReceiver.serve_until_stopped() method from logging.config.listen() now calls server_close() (of socketserver.ThreadingTCPServer) rather than closing manually the socket. While this change has no effect yet, it will help to prevent dangling threads once ThreadingTCPServer.server_close() will join spawned threads (bpo-31233). | ||||
| * | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 3 | -131/+111 |
| | | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
| * | bpo-31080: Allowed logging.config.fileConfig() to accept both args and ↵ | Preston Landers | 2017-08-02 | 1 | -2/+4 |
| | | | | | kwargs. (GH-2979) | ||||
| * | bpo-31084: QueueHandler now formats messages correctly. (GH-2954) | favll | 2017-08-01 | 1 | -4/+5 |
| | | |||||
| * | Updated LoggerAdapter.isEnabledFor to take advantage of caching. (GH-2951) | Vinay Sajip | 2017-07-30 | 1 | -3/+1 |
| | | |||||
| * | bpo-30522: Implemented a method to allow setting a logging.StreamHander's ↵ | Vinay Sajip | 2017-07-30 | 1 | -0/+20 |
| | | | | | stream. (GH-2921) | ||||
| * | bpo-30962: Added caching to Logger.isEnabledFor() (GH-2752) | Avram Lubkin | 2017-07-30 | 1 | -3/+27 |
| | | |||||
| * | bpo-30520: Implemented pickling for loggers. (#1956) | Vinay Sajip | 2017-06-06 | 1 | -2/+13 |
| | | | | Implemented pickling for loggers. | ||||
| * | bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses ↵ | Xiang Zhang | 2017-06-01 | 1 | -5/+20 |
| | | | | | (#1676) | ||||
| * | bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489) | Jon Dufresne | 2017-05-18 | 1 | -2/+2 |
| | | | | | | | | | * Replaced list(<generator expression>) with list comprehension * Replaced dict(<generator expression>) with dict comprehension * Replaced set(<list literal>) with set literal * Replaced builtin func(<list comprehension>) with func(<generator expression>) when supported (e.g. any(), all(), tuple(), min(), & max()) | ||||
| * | bpo-30144: Import collections ABC from collections.abc rather than ↵ | Serhiy Storchaka | 2017-04-24 | 1 | -3/+3 |
| | | | | | collections. (#1263) | ||||
| * | bpo-29808: SysLogHandler: Do not fail if initial connect to syslog failed ↵ | Коренберг Марк | 2017-03-17 | 1 | -1/+8 |
| | | | | | (#663) (#663) | ||||
| * | Issue #29220: Merged fixes from 3.6. | Vinay Sajip | 2017-01-11 | 1 | -5/+6 |
| |\ | |||||
| | * | Issue #292Merged fixes from 3.5. | Vinay Sajip | 2017-01-11 | 1 | -3/+8 |
| | |\ | |||||
| | | * | Issue #29220: Improved fix and test. | Vinay Sajip | 2017-01-11 | 1 | -3/+8 |
| | | | | |||||
| * | | | Closes #29220: Fixed regression in logging.getLevelName(). | Vinay Sajip | 2017-01-11 | 1 | -3/+7 |
| | | | | |||||
| * | | | Closes #28524: added default level for logging.disable(). | Vinay Sajip | 2016-12-31 | 1 | -1/+1 |
| | | | | |||||
| * | | | Issue #28335: made minor improvement to implementation. | Vinay Sajip | 2016-10-03 | 1 | -1/+1 |
| | | | | |||||
| * | | | Closes #28335: used 'raise from' in logging configuration code. | Vinay Sajip | 2016-10-03 | 1 | -16/+16 |
| |/ / | |||||
| * | | Closes #27930: Merged fix from 3.5. | Vinay Sajip | 2016-09-08 | 1 | -15/+2 |
| |\ \ | |/ | |||||
| | * | Fixes #27930: improved QueueListener behaviour. | Vinay Sajip | 2016-09-08 | 1 | -17/+4 |
| | | | |||||
| | * | Fixes #27937: optimise code used in all logging calls. | Vinay Sajip | 2016-09-03 | 1 | -4/+5 |
| | | | |||||
| * | | Closes #27935: returned numeric value for 'FATAL' logging level. | Vinay Sajip | 2016-09-03 | 1 | -0/+1 |
| | | | |||||
| * | | Fixes #27937: optimise code used in all logging calls. | Vinay Sajip | 2016-09-03 | 1 | -2/+3 |
| | | | |||||
| * | | Closes #27650: Implemented repr methods for logging objects. | Vinay Sajip | 2016-08-06 | 1 | -0/+27 |
| | | | |||||
| * | | Closes #27493: accepted Path objects in file handlers for logging. | Vinay Sajip | 2016-07-22 | 2 | -2/+7 |
| | | | |||||
| * | | Closes #26559: Allow configuring flush-on-close behaviour of MemoryHandler. | Vinay Sajip | 2016-07-22 | 1 | -5/+15 |
| | | | |||||
| * | | Fixed #27251: merged fix from 3.5. | Vinay Sajip | 2016-06-07 | 1 | -2/+2 |
| |\ \ | |/ | |||||
| | * | Fixed #27251: corrected string/bytes handling in credentials. | Vinay Sajip | 2016-06-07 | 1 | -2/+2 |
| | | | |||||
| * | | merge with 3.5 | Georg Brandl | 2016-02-25 | 1 | -2/+2 |
| |\ \ | |/ | |||||
| | * | Closes #26435: fix syntax in directives. Thanks to Jakub Stasiak. | Georg Brandl | 2016-02-25 | 1 | -2/+2 |
| | | | |||||
| * | | Closes #25685: Merged fix from 3.5. | Vinay Sajip | 2015-12-26 | 1 | -0/+2 |
| |\ \ | |/ | |||||
| | * | Closes #25685: Made SocketHandler emission more efficient. | Vinay Sajip | 2015-12-26 | 1 | -0/+2 |
| | | | |||||
| * | | Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej | Martin Panter | 2015-11-14 | 1 | -2/+3 |
| | | | |||||
| * | | Closes #25411: Merged fix from 3.5. | Vinay Sajip | 2015-10-17 | 1 | -8/+10 |
| |\ \ | |/ | |||||
| | * | Closes #25411: Merged fix from 3.4. | Vinay Sajip | 2015-10-17 | 1 | -8/+10 |
| | |\ | |||||
| | | * | Closes #25411: Improved Unicode support in SMTPHandler. | Vinay Sajip | 2015-10-17 | 1 | -10/+12 |
| | | | | |||||
