diff options
author | har7an <99636919+har7an@users.noreply.github.com> | 2022-12-07 07:51:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-07 07:51:23 +0000 |
commit | 81287a276f62d4ca98c9fa1b76332db074a13cc5 (patch) | |
tree | f23a2103953797d28480d22750f24287318a7e61 /CHANGELOG.md | |
parent | fd7a5398cd0145f9b3c59ac6382cc2883a90b92a (diff) |
errors: Maintain caller location in `to_log` (#1994)
* utils/errors: Add caller location to `to_log`
by building the log record manually and filling in the callers file and
line manually. It is currently not possible to determine a callers
module, hence the module is now set to "???" in all log entries logged
this way. Nonetheless, the file and line number are sufficient to find
the logs source.
* utils/errors: Reimplement `to_log`
default implementation in the `LoggableError` trait.
* changelog: Add PR #1994
errors: Maintain caller location in `to_log`
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a4b40cbb4..52c0d1e33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) * fix(themes): missing tokyo-night-dark theme (https://github.com/zellij-org/zellij/pull/1972) * refactor(plugins): fix plugin loading data flow (https://github.com/zellij-org/zellij/pull/1995) * refactor(messaging): reduce extraneous cross-thread messaging (https://github.com/zellij-org/zellij/pull/1996) +* errors: preserve caller location in `to_log` (https://github.com/zellij-org/zellij/pull/1994) ## [0.33.0] - 2022-11-10 |