Skip to content

Commit

Permalink
Merge pull request #2573 from camptocamp/backport/2555-to-master
Browse files Browse the repository at this point in the history
[Backport master] Fix setup logging
  • Loading branch information
sbrunner authored Jan 6, 2025
2 parents 4ccc723 + 565dcf6 commit 556aa12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions c2cwsgiutils/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ def __repr__(self) -> str:

def setup_logging(self, defaults: Optional[dict[str, str]] = None) -> None:
"""
Set up logging via :func:`logging.config.fileConfig`.
Set up logging via :func:`logging.config.dictConfig` with value returned from c2cwsgiutils.get_logconfig_dict.
Defaults are specified for the special ``__file__`` and ``here``
variables, similar to PasteDeploy config loading. Extra defaults can
optionally be specified as a dict in ``defaults``.
Arguments:
defaults: The defaults that will be used when passed to
:func:`logging.config.fileConfig`.
---------
defaults: The defaults that will be used when passed to
:func:`logging.config.fileConfig`.
"""
if "loggers" in self.get_sections():
Expand Down

0 comments on commit 556aa12

Please sign in to comment.