Increase logging verbosity
Some checks failed
Basic Cargo Checks / docker-build (push) Failing after 51s
Basic Cargo Checks / docker-check (push) Failing after 2m35s

This commit is contained in:
Blizzard Finnegan 2023-06-12 08:42:36 -04:00
parent 42944f2d3c
commit 40c33a8d79
Signed by: blizzardfinnegan
GPG key ID: 61C1E13067E0018E
2 changed files with 7 additions and 7 deletions

View file

@ -246,11 +246,11 @@ impl Device{
match temp{
Ok(opened_file) => self.output_file = Some(opened_file),
Err(_) => {
log::warn!("Could not open file to write! Potential permissions error.");
log::warn!("Could not open file [{}] to write! Potential permissions error.",output_path);
return false
}
}
log::trace!("{:?}",self.output_file);
log::trace!("Writing to file: {:?}",self.output_file);
if let Some(ref mut file_name) = self.output_file{
log::debug!("Writing to file!");
let mut output_data = REBOOTS_SECTION.to_string();
@ -378,13 +378,13 @@ impl Device{
log::info!("Running bp {} on device {} ...",(self.bps+1),self.serial);
self.start_bp();
let bp_start = self.is_bp_running();
log::trace!("{:?}",bp_start);
log::trace!("Has bp started on device {}? : {:?}",self.serial,bp_start);
thread::sleep(BP_RUN);
let bp_end = self.is_bp_running();
log::trace!("{:?}",bp_end);
log::trace!("Has bp ended on device {}? : {:?}",self.serial,bp_end);
if bp_start != bp_end {
self.bps +=1;
log::debug!("Increasing bp count to {}",self.bps);
log::debug!("Increasing bp count for device {} to {}",self.serial,self.bps);
self.save_values();
}
}
@ -394,7 +394,7 @@ impl Device{
let temp_end = self.stop_temp().is_temp_running();
if temp_start != temp_end {
self.temps +=1;
log::debug!("Increasing temp count to {}",self.temps);
log::debug!("Increasing temp count for device {} to {}",self.serial,self.temps);
self.save_values();
}
}

View file

@ -133,7 +133,7 @@ impl TTY{
return Response::Other;
}
else {
log::debug!("Read an empty string. Possible read error.");
log::debug!("Read an empty string from device {:?}. Possible read error.", self);
//Due to a linux kernel power-saving setting that is overly complicated to fix,
//Serial connections will drop for a moment before re-opening, at seemingly-random
//intervals. The below is an attempt to catch and recover from this behaviour.