<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/arti/src/logging.rs, branch arti-v1.2.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.2.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-02-22T18:33:52Z</updated>
<entry>
<title>arti: Don't output ANSI escape codes when logging to file.</title>
<updated>2024-02-22T18:33:52Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-02-22T18:33:52Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1b0cd20a52c80136ce3ced14e17e6689aac8646f'/>
<id>urn:sha1:1b0cd20a52c80136ce3ced14e17e6689aac8646f</id>
<content type='text'>
Closes #1298
</content>
</entry>
<entry>
<title>educe: Use std's default for enums where default variant is unit</title>
<updated>2024-02-12T11:38:36Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-02-12T11:07:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c35c60f848154e80f23ba95a989ff2f9d2594e6a'/>
<id>urn:sha1:c35c60f848154e80f23ba95a989ff2f9d2594e6a</id>
<content type='text'>
Since Rust 1.66, std's default works properly for enums, provided that
the default variant is a unit.

Review all uses of `#[educe(default)]` on enums and replace them with
std where possible, which is most of them.

In 1.66 and later, std's `#[derive(Default)]` doesn't infer any
generic bounds on the derived impl, where it's an enum - since the
unit variant can always be constructed.  So this change doesn't add
any generic bounds and is not API-visible.
</content>
</entry>
<entry>
<title>Throughout: Use *_report!() macros for reporting Errors.</title>
<updated>2023-07-07T17:00:21Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-07-07T13:54:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=25c6fe61e4cf230210dffdac2d3c281fcb31c5a9'/>
<id>urn:sha1:25c6fe61e4cf230210dffdac2d3c281fcb31c5a9</id>
<content type='text'>
I identified the cases to replace by searching for the string
`.report()`.  There are a few that I didn't change:

  * A couple of cases that used anyhow::Error,
  * One case that reported two Errors.
  * Two cases in `tor_hsclient::err` that just did
    `error!("Bug: {}")`.

I have also not audited the cases in `tor-hsclient` where we're using
`tor_error::Report` manually.

Nonetheless, closes #949.
</content>
</entry>
<entry>
<title>Merge branch 'log_precision' into 'main'</title>
<updated>2023-07-06T14:37:49Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-07-06T14:37:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=36a92e44d9a36afa1c9b88caa1505e38ae5d5cc5'/>
<id>urn:sha1:36a92e44d9a36afa1c9b88caa1505e38ae5d5cc5</id>
<content type='text'>
arti: Add a `logging.time_granularity` option with 1s default.

Closes #551

See merge request tpo/core/arti!1376</content>
</entry>
<entry>
<title>arti: Add a `logging.time_granularity` option with 1s default.</title>
<updated>2023-07-06T13:44:09Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-07-05T17:09:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=512064cc19d24c111495150f8cf424b89395847b'/>
<id>urn:sha1:512064cc19d24c111495150f8cf424b89395847b</id>
<content type='text'>
This lets us provide less information in our logs: in particular, it
lets us avoid logging with microsecond precision.

Closes #551.
</content>
</entry>
<entry>
<title>arti: Note possibility for future use of other tracing panic provider</title>
<updated>2023-07-06T12:50:53Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-07-06T12:50:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d2b6fee3f99bcec0252e5efd182ccde90ea900c8'/>
<id>urn:sha1:d2b6fee3f99bcec0252e5efd182ccde90ea900c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>arti: On panic, avoid allocation even more.</title>
<updated>2023-07-06T12:45:34Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-07-06T12:45:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=01f1192b20267038817e410dab31ca1acdb64f73'/>
<id>urn:sha1:01f1192b20267038817e410dab31ca1acdb64f73</id>
<content type='text'>
The original version of our panic handler would allocate a string
for the panic `Location`.  But if we're panicking we'd like to keep
allocations to a minimum: so instead format the `Location`
conditionally.

This also drops a useless `std::borrow::Cow`.  (The possibility of a
"Don't have a `Cow`" commit message was considered and rejected.)
</content>
</entry>
<entry>
<title>Add TODO comments about possibly migrating away from the backtrace crate.</title>
<updated>2023-07-05T20:39:11Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-07-05T20:39:11Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=afa51fd5ca3c625fbe71e5991e38d8056427d282'/>
<id>urn:sha1:afa51fd5ca3c625fbe71e5991e38d8056427d282</id>
<content type='text'>
</content>
</entry>
<entry>
<title>arti: Install a panic hook that sends messages to `tracing`</title>
<updated>2023-07-05T20:37:10Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-07-05T20:11:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9c4de185e99b443558bd5a1b676579632ea26e6c'/>
<id>urn:sha1:9c4de185e99b443558bd5a1b676579632ea26e6c</id>
<content type='text'>
(Also leaves installed the default handler that sends messages to
stderr.)

Closes #921.
</content>
</entry>
<entry>
<title>Use ErrorReport/Report for errors in warn! in arti</title>
<updated>2023-01-30T18:52:32Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-01-30T18:10:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=36ebf7d23adcf727972abd97d0a768be86c0e5a5'/>
<id>urn:sha1:36ebf7d23adcf727972abd97d0a768be86c0e5a5</id>
<content type='text'>
</content>
</entry>
</feed>
