less spammy log

master
Ondřej Hruška 1 year ago
parent 7038863653
commit 153230615a
  1. 4
      src/main.rs

@ -5,7 +5,7 @@ use anyhow::Context;
use chrono::{NaiveDateTime, Utc};
use image::{GenericImageView, Pixel};
use log::{debug, error, info};
use log::{debug, error, info, trace};
/// Folder the camera images are uploaded to
const FOLDER_WITH_NEW_IMAGES: &str = "/tmp/camera";
@ -48,7 +48,7 @@ fn main() {
loop {
if !commit_file.exists() {
debug!("No commit file, wait.");
trace!("No commit file, wait.");
std::thread::sleep(Duration::from_secs(5));
continue;
}

Loading…
Cancel
Save