Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3dbbc78
commit 176bc68
Showing
3 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/mailman/core/logging.py b/src/mailman/core/logging.py | ||
index f8f87279f..7ff13b003 100644 | ||
--- a/src/mailman/core/logging.py | ||
+++ b/src/mailman/core/logging.py | ||
@@ -142,6 +142,8 @@ def _init_logger(propagate, sub_name, log, logger_config): | ||
address, facility = _get_syslog_params(logger_config) | ||
handler = logging.handlers.SysLogHandler( | ||
address=address, facility=facility) | ||
+ elif logger_config.handler == 'stderr': | ||
+ handler = logging.StreamHandler(sys.stderr) | ||
else: | ||
path_str = logger_config.path | ||
path_abs = os.path.normpath(os.path.join(config.LOG_DIR, path_str)) |