Change log from warn > debug.

This was changed from error to warn, but a debug is better as there is
not really something to warn the user about and with many devices
this might become very noisy.
This commit is contained in:
Orne Brocaar 2023-11-23 13:25:06 +00:00
parent 8e6079ec9c
commit 0f9674ec0a

View File

@ -5,7 +5,7 @@ use std::time::Duration;
use anyhow::{Context, Result}; use anyhow::{Context, Result};
use chrono::{DateTime, Utc}; use chrono::{DateTime, Utc};
use rand::Rng; use rand::Rng;
use tracing::{span, trace, warn, Instrument, Level}; use tracing::{debug, span, trace, warn, Instrument, Level};
use crate::api::backend::get_async_receiver; use crate::api::backend::get_async_receiver;
use crate::api::helpers::{FromProto, ToProto}; use crate::api::helpers::{FromProto, ToProto};
@ -1014,7 +1014,7 @@ impl Data {
trace!("Checking if device has sent its first uplink already"); trace!("Checking if device has sent its first uplink already");
if self.device_session.f_cnt_up == 0 { if self.device_session.f_cnt_up == 0 {
warn!("Device must send its first uplink first"); debug!("Device must send its first uplink first");
return Err(Error::Abort); return Err(Error::Abort);
} }