Skip to content

Commit

Permalink
Log when not using slack. (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch authored Jan 30, 2025
1 parent c60fbdf commit 707fe55
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tc-cli/src/slack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ pub struct Sender {

impl Sender {
pub fn new() -> Self {
Self { slack: Slack::new().ok() }
let slack = match Slack::new() {
Ok(slack) => Some(slack),
Err(err) => {
log::info!("not logging to slack: {err}");
None
},
};
Self { slack }
}

pub async fn text(&self, text: String) -> Result<()> {
Expand Down

0 comments on commit 707fe55

Please sign in to comment.