don't webhook the errors
This commit is contained in:
parent
91cd18e930
commit
4f3d1560e8
|
@ -1511,7 +1511,7 @@ checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tron"
|
name = "tron"
|
||||||
version = "0.2.9"
|
version = "0.2.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "tron"
|
name = "tron"
|
||||||
version = "0.2.9"
|
version = "0.2.10"
|
||||||
authors = ["Christine Dodrill <me@christine.website>"]
|
authors = ["Christine Dodrill <me@christine.website>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
repository = "https://tulpa.dev/cadey/tron"
|
repository = "https://tulpa.dev/cadey/tron"
|
||||||
|
|
|
@ -257,10 +257,6 @@ async fn main() -> Result<()> {
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
log::error!("firehose error: {:#?}", why);
|
log::error!("firehose error: {:#?}", why);
|
||||||
discord_webhook::execute(
|
|
||||||
cfg.discord_webhook_url.clone(),
|
|
||||||
Body::new(format!("firehose error:\n```\n{:#?}\n```", why))
|
|
||||||
).await?;
|
|
||||||
|
|
||||||
std::thread::sleep(std::time::Duration::from_millis(tries * 1000));
|
std::thread::sleep(std::time::Duration::from_millis(tries * 1000));
|
||||||
if tries == 5 {
|
if tries == 5 {
|
||||||
|
|
Loading…
Reference in New Issue