Skip to content

Commit

Permalink
refactor: Remove unnecessary log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
anstadnik committed Oct 5, 2023
1 parent b08bf4f commit 926d681
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ jobs:
- name: Move binary
run: mv target/*/bot target

- run: ls -l target/bot

- uses: actions/upload-artifact@v3
with:
name: executable
Expand Down
5 changes: 2 additions & 3 deletions core/src/model/data.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::model::MultilangFs;
use crate::prelude::*;
use anyhow::{anyhow, Result};
use log::info;
use std::borrow::Cow;

#[derive(Debug)]
Expand All @@ -11,11 +10,11 @@ pub struct Data {

impl Data {
pub fn dynamic() -> Self {
info!("Dynamic data!");
log::info!("Dynamic data!");
Self { data: None }
}
pub fn cached() -> Result<Self> {
info!("Cached data!");
log::info!("Cached data!");
Ok(Self {
data: Some(get_data_from_file("table.csv")?),
})
Expand Down
1 change: 1 addition & 0 deletions docker-compose_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
image: first_aid_bot:dev
environment:
- SHEET_ID
- RUST_LOG=info
- TELOXIDE_TOKEN
restart: unless-stopped
depends_on:
Expand Down

0 comments on commit 926d681

Please sign in to comment.