less spammy log

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

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

Loading…
Cancel
Save