<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-error/src/tracing.rs, branch arti-v1.7.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.7.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.7.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2025-08-18T19:45:55Z</updated>
<entry>
<title>tor-error: allow only error given to `_report!` macros</title>
<updated>2025-08-18T19:45:55Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-08-09T21:27:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8b683380191ca93295c3c8036596df3317f7549c'/>
<id>urn:sha1:8b683380191ca93295c3c8036596df3317f7549c</id>
<content type='text'>
This is useful when you create an `internal!` error and then immediately
report it. If the `_report!` macro also requires a message, then you
need to provide two messages for the error, which doesn't always make
sense.

This is already possible anyways with `warn_report!(e,)`.
Now you don't need the comma.
</content>
</entry>
<entry>
<title>tor-error: update `_report!` macros to support tracing fields</title>
<updated>2025-08-18T19:45:55Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-08-09T00:52:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=54ef60d3f8dca50973b77767d0a101006cee52c0'/>
<id>urn:sha1:54ef60d3f8dca50973b77767d0a101006cee52c0</id>
<content type='text'>
This requires that we put the error in a field. There are two issues
that we'll fix in the next two commits:

1. Errors are no longer formatted with `ErrorReport`.
2. Errors will be in the first field, but long (or multiline) error
   messages will cause other fields to be pushed to the end where
   they're harder to find.
</content>
</entry>
<entry>
<title>Switch Cargo.toml files to edition 2024.</title>
<updated>2025-08-07T15:28:36Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-08-06T01:19:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=77b0de43b8c67cdb81befe0680a3df43b6ad37bc'/>
<id>urn:sha1:77b0de43b8c67cdb81befe0680a3df43b6ad37bc</id>
<content type='text'>
First, run

```
git grep -l "^edition =" |
    xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;'
```

Second, manually verify that all Cargo.toml files have changed,
and nothing else has changed.

Third, run cargo fmt again.
</content>
</entry>
<entry>
<title>Run maint/add_warning.</title>
<updated>2024-03-13T16:30:53Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-03-13T16:30:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c0c9bd15d42897825dd0ab3d3b8dd1c17bd6320c'/>
<id>urn:sha1:c0c9bd15d42897825dd0ab3d3b8dd1c17bd6320c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-error: tests: Demonstrate warn_report on bare error and anyhow</title>
<updated>2023-12-12T13:14:22Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-12-12T12:29:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3de9c7e3b4d22d4c9d860457d1525a124430314f'/>
<id>urn:sha1:3de9c7e3b4d22d4c9d860457d1525a124430314f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-error: fmt_ending_ok: Permit messages ending in ascii ellipsis</title>
<updated>2023-11-20T18:22:30Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-11-20T18:16:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7c272ed251e475dea6a28e45431a2a0bbdb8185f'/>
<id>urn:sha1:7c272ed251e475dea6a28e45431a2a0bbdb8185f</id>
<content type='text'>
Tbis will result in "some message ...: the error" which I think is OK.
We don't use a Unicode single-character ellipsis because that
character can be hard to read at font sizes which are otherwise OK for
text, and because use of non-ascii in logfiles and error messages is
unecessary and might cause unnecessary trouble (for example, if the
log messages end up going somewhere which isn't 100% valid UTF-8).
</content>
</entry>
<entry>
<title>tor-error: fmt_ending_ok: Implement with a direct match</title>
<updated>2023-11-20T18:22:30Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-11-20T17:45:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d1e71dc2aa96c98c0c1204a8fe19d6a6fe4c7efc'/>
<id>urn:sha1:d1e71dc2aa96c98c0c1204a8fe19d6a6fe4c7efc</id>
<content type='text'>
Possibly at some point in the past, matching a slice directly wasn't
possible.  But it is now.
</content>
</entry>
<entry>
<title>Fix warn_report and error_report macros.</title>
<updated>2023-07-07T19:46:41Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-07-07T19:46:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=53c599d50f6394a301f0aa491454bd69ba42a962'/>
<id>urn:sha1:53c599d50f6394a301f0aa491454bd69ba42a962</id>
<content type='text'>
Originally they didn't check err.kind(), since err.kind() can never
increase their severity.  We lost that behavior with !1386, and we
became dependent on it with arti!1383.  Since they both merged at
the same time, CI broke.

This patch restores their original behavior.
</content>
</entry>
<entry>
<title>tor-error: tracing module: Use macro to generate macros</title>
<updated>2023-07-07T17:38:24Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-07-07T16:43:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=696adc3c9407019a7969eeff9680d8ed668a730b'/>
<id>urn:sha1:696adc3c9407019a7969eeff9680d8ed668a730b</id>
<content type='text'>
This abolishes some quintuplication.

The output is identical except that:
 * The syntax display in the rustdoc output for the resulting macros
   seems to have somewhat less whitepsace.
 * The whimsical error messages in the examples are all identical.
   Ah well.
</content>
</entry>
<entry>
<title>tor-error: tracing module: Fix link to tracing macro</title>
<updated>2023-07-07T16:48:05Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-07-07T16:47:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=220900a852308042c237317eaca411782f0d0bd6'/>
<id>urn:sha1:220900a852308042c237317eaca411782f0d0bd6</id>
<content type='text'>
</content>
</entry>
</feed>
