mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
chore(rust): correctly format values in errors
This commit is contained in:
parent
347add8998
commit
7737850afb
15 changed files with 54 additions and 62 deletions
|
|
@ -81,12 +81,12 @@ macro_rules! main {
|
|||
.build()
|
||||
.unwrap()
|
||||
.block_on(async {
|
||||
if let Err(err) = libpk::init_metrics() {
|
||||
tracing::error!("failed to init metrics collector: {err}");
|
||||
if let Err(error) = libpk::init_metrics() {
|
||||
tracing::error!(?error, "failed to init metrics collector");
|
||||
};
|
||||
tracing::info!("hello world");
|
||||
if let Err(err) = real_main().await {
|
||||
tracing::error!("failed to run service: {err}");
|
||||
if let Err(error) = real_main().await {
|
||||
tracing::error!(?error, "failed to run service");
|
||||
};
|
||||
});
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue