Skip to content

Commit

Permalink
Map native fatal to critical (#677)
Browse files Browse the repository at this point in the history
Fixes #640
  • Loading branch information
hynek authored Nov 15, 2024
1 parent 51641b7 commit 6a111d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ You can find our backwards-compatibility policy [here](https://github.com/hynek/

[#669](https://github.com/hynek/structlog/pull/669)

- The native `FilteringBoundLogger.fatal()` method now maps to the critical level, as it does in the standard library.
Note that the level is discouraged to use there, so we recommend to stick to `error()` or `critical()`.

[#677](https://github.com/hynek/structlog/pull/677)


## [24.4.0](https://github.com/hynek/structlog/compare/24.3.0...24.4.0) - 2024-07-17

Expand Down
4 changes: 2 additions & 2 deletions src/structlog/_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ async def alog(

meths["exception"] = exception
meths["aexception"] = aexception
meths["fatal"] = meths["error"]
meths["afatal"] = meths["aerror"]
meths["fatal"] = meths["critical"]
meths["afatal"] = meths["acritical"]
meths["warn"] = meths["warning"]
meths["awarn"] = meths["awarning"]
meths["msg"] = meths["info"]
Expand Down

0 comments on commit 6a111d6

Please sign in to comment.