Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 24, 2024
1 parent ab3ad4b commit d60a279
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion BREAKING_CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Release 6.1

- The `handlers` in the `.ini` files don't support `args` anymore. You must use `kwargs`
arguments. Example `args = (sys.stdout,)` becomes `kwargs = {'stream': 'ext://sys.stdout'}`.
arguments. Example `args = (sys.stdout,)` becomes `kwargs = {'stream': sys.stdout}`.
- SqlAlchemy logger must now be instantiated by your app's `main` method and not by your
`.ini` file. Read the example in the sqlalchemylogger folder.

Expand Down
4 changes: 2 additions & 2 deletions acceptance_tests/gunicorn_app/production.ini
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ qualname = c2cwsgiutils_app

[handler_console]
class = logging.StreamHandler
kwargs = {'stream': 'ext://sys.stdout'}
kwargs = {'stream': sys.stdout}
level = NOTSET
formatter = generic

[handler_json]
class = c2cwsgiutils.pyramid_logging.JsonLogHandler
kwargs = {'stream': 'ext://sys.stdout'}
kwargs = {'stream': sys.stdout}
level = NOTSET
formatter = generic

Expand Down
4 changes: 2 additions & 2 deletions acceptance_tests/waitress_app/production.ini
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ qualname = c2cwsgiutils_app

[handler_console]
class = logging.StreamHandler
kwargs = {'stream': 'ext://sys.stdout'}
kwargs = {'stream': sys.stdout}
level = NOTSET
formatter = generic

[handler_json]
class = c2cwsgiutils.pyramid_logging.JsonLogHandler
kwargs = {'stream': 'ext://sys.stdout'}
kwargs = {'stream': sys.stdout}
level = NOTSET
formatter = generic

Expand Down
2 changes: 1 addition & 1 deletion c2cwsgiutils/setup_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import pyramid.registry
import pyramid.request
import pyramid.router
from pyramid.paster import bootstrap
from pyramid.paster import bootstrap, setup_logging
from pyramid.scripts.common import get_config_loader, parse_vars

from c2cwsgiutils import broadcast, coverage_setup, redis_stats, sentry, sql_profiler
Expand Down
4 changes: 2 additions & 2 deletions production.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ qualname = c2cwsgiutils

[handler_console]
class = logging.StreamHandler
kwargs = {'stream': 'ext://sys.stdout'}
kwargs = {'stream': sys.stdout}
level = NOTSET
formatter = generic

[handler_json]
class = c2cwsgiutils.pyramid_logging.JsonLogHandler
kwargs = {'stream': 'ext://sys.stdout'}
kwargs = {'stream': sys.stdout}
level = NOTSET
formatter = generic

Expand Down

0 comments on commit d60a279

Please sign in to comment.