<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-error/src/tracing.rs, branch ios-sqlite-hacks</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=ios-sqlite-hacks</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=ios-sqlite-hacks'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-07-07T19:46:41Z</updated>
<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>
<entry>
<title>event_report: assert correctness of format ending</title>
<updated>2023-07-07T13:00:31Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-07-07T12:47:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=023d288ba228b494500eb9c8ee91c6bde5f62a93'/>
<id>urn:sha1:023d288ba228b494500eb9c8ee91c6bde5f62a93</id>
<content type='text'>
(Also, document that this static assertion is the reason why you are
seeing a confusing error message.)
</content>
</entry>
<entry>
<title>tor-error: Add optional tracing support</title>
<updated>2023-07-07T13:00:31Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-07-06T17:48:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7168feefdd41b110646428a087d0b76da990239e'/>
<id>urn:sha1:7168feefdd41b110646428a087d0b76da990239e</id>
<content type='text'>
The main contribution here is a set of convenience macros for
logging error `Report`s.  Notably, this macros always logs
`Internal` and `BadAspiUsage` errors at `WARN`, unless they
are already at `ERROR` or more.

This is a little tricky because `tracing::event!()` requires
its Level argument to be a constant.
</content>
</entry>
</feed>
