Skip to content

Commit

Permalink
fix(v1.51): #1948 passing wrapper class to struct logging config caus…
Browse files Browse the repository at this point in the history
…es pydantic exception (#2105)
  • Loading branch information
JacobCoffee authored Aug 4, 2023
1 parent cefdb8c commit 9c27b3b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Code owner settings for `litestar`
# @maintainers should be assigned to all reviews.
# Most specific assignment takes precedence though, so if you add a more specific thing than the `*` glob, you must also add @maintainers
# For more info about code owners see https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-file-example

# Global Assignment
* @litestar-org/maintainers @litestar-org/members

# Documentation
docs/* @litestar-org/maintainers @JacobCoffee @provinzkraut
2 changes: 1 addition & 1 deletion starlite/config/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class StructLoggingConfig(BaseLoggingConfig, BaseModel):

processors: Optional[List[Processor]] = Field(default_factory=default_structlog_processors) # pyright: ignore
"""Iterable of structlog logging processors."""
wrapper_class: Optional[Type[BindableLogger]] = Field(default_factory=default_wrapper_class) # pyright: ignore
wrapper_class: Any = Field(default_factory=default_wrapper_class) # pyright: ignore
"""Structlog bindable logger."""
context_class: Optional[Dict[str, Any]] = None
"""Context class (a 'contextvar' context) for the logger."""
Expand Down

0 comments on commit 9c27b3b

Please sign in to comment.