Commit Graph

9 Commits (8eff499a630f951bbcca563268eed7b5d7b06fcc)

Author SHA1 Message Date
Byron Hambly 8eff499a63
fix: change logs to UTC due to bug in time crate
On Linux and macOS, no program output was being observed.
This is referenced in the [LocalTime] docs for `tracing-subscriber`,
which links to this [unsoundness issue] in the time crate.

Rather than introducing a possible vector for undefined behaviour and
segfaults, I have just changed the logging to use UTC time instead.

When running the ASB as a systemd service, one would generally use the
`--disable-timestamps` flag anyway as systemd adds its own timestamps
which can be local to the server.

If the situation with `tracing-subscriber` and the time crate is fixed
then this can be updated.

This commit also updates the `tracing-subscriber` and `tracing-appender`
dependencies, closing #987.

[LocalTime]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/time/struct.LocalTime.html
[unsoundness issue]: https://github.com/time-rs/time/issues/293#issuecomment-748151025
2 years ago
binarybaron 407b98d3a2 Always write logs as JSON to files 2 years ago
binarybaron 43c07636d8 Revert move from `chrono` to `local-time`
This reverts commit 9e85637419
3 years ago
rishflab 9e85637419 Use rfc3339 date time when logging
Chrono feature is deprecated in tracing-subscriber 0.3.3
3 years ago
rishflab 5de559999d Enable json logs for the cli 3 years ago
Thomas Eizinger 09f395a26b
Don't print level and time for `list-sellers`
This is now consistent with the `buy-xmr` command.
3 years ago
Daniel Karzel ff10edd8a4
Add the `list-sellers` command to the CLI
This command uses a rendezvous node to find sellers (i.e. ASBs) and query them for quotes.
Sellers, that can be dialed and queried for a quote will be listed.
3 years ago
Daniel Karzel 0187d9ef4f
Introduce `--json` flag for the CLI
When `--json` is used the CLI does not log to file, but only on the command line in json output.
3 years ago
rishflab 8805002f96 Remove redundant noun from tracing initialiser functions 3 years ago