~goorzhel/sota-slack-spotter

104a2af361800e16909b775d5f01a4dc1908c9fe — Antonio Gurgel a month ago 7332da6
Use the {:#}, Luke

It was in the docs all along:
https://docs.rs/anyhow/1.0.60/src/anyhow/lib.rs.html#294
1 files changed, 3 insertions(+), 3 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +3 -3
@@ 74,7 74,7 @@ async fn main() -> Result<()> {
            match fetch_callsigns(&slack, &mut callsigns) {
                Ok(count) => callsign_gauge.set(count.try_into().unwrap()),
                Err(e) => {
                    error!("Error while fetching callsigns: {}", e);
                    error!("Error while fetching callsigns: {:#}", e);
                    let ec = errors_counter.lock().unwrap();
                    ec.with_label_values(&["callsigns"]).inc();
                }


@@ 93,7 93,7 @@ async fn main() -> Result<()> {
            match process_spots(&slack_clone, &callsigns, &mut activations, &mut spots) {
                Ok(c) => spots_counter.inc_by(c.try_into().unwrap()),
                Err(e) => {
                    error!("Error while processing spots: {}", e);
                    error!("Error while processing spots: {:#}", e);
                    let ec = errors_counter_clone.lock().unwrap();
                    ec.with_label_values(&["spots"]).inc();
                }


@@ 101,7 101,7 @@ async fn main() -> Result<()> {
            match process_alerts(&slack_clone, &callsigns, &mut alerts) {
                Ok(c) => alerts_counter.inc_by(c.try_into().unwrap()),
                Err(e) => {
                    error!("Error while processing alerts: {}", e);
                    error!("Error while processing alerts: {:#}", e);
                    let ec = errors_counter_clone.lock().unwrap();
                    ec.with_label_values(&["alerts"]).inc();
                }