Skip to content

Commit

Permalink
syslogprocessor.rs NFC debug logs, note BUG #245
Browse files Browse the repository at this point in the history
Issue #245
  • Loading branch information
jtmoon79 committed Mar 17, 2024
1 parent f9ecf9c commit 925a5fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/readers/syslogprocessor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,8 @@ impl SyslogProcessor {
/// [`Sysline`]: crate::data::sysline::Sysline
/// [`BlockReader`]: crate::readers::blockreader::BlockReader
/// [`DateTimeL`]: crate::data::datetime::DateTimeL
// BUG: does not revise year guesstimation based on encountering leap date February 29
// See Issue #245
pub fn process_missing_year(
&mut self,
mtime: SystemTime,
Expand All @@ -608,9 +610,12 @@ impl SyslogProcessor {
defn!("({:?}, {:?})", mtime, filter_dt_after_opt);
debug_assert!(!self.did_process_missing_year(), "process_missing_year() must only be called once");
let dt_mtime: DateTimeL = systemtime_to_datetime(&self.tz_offset, &mtime);
defo!("converted dt_mtime {:?}", dt_mtime);
let year: Year = dt_mtime.date_naive().year() as Year;
self.missing_year = Some(year);
defo!("converted missing_year {:?}", self.missing_year);
let mut year_opt: Option<Year> = Some(year);
defo!("year_opt {:?}", year_opt);
let charsz_fo: FileOffset = self.charsz() as FileOffset;

// The previously stored `Sysline`s have a filler year that is most likely incorrect.
Expand Down

0 comments on commit 925a5fc

Please sign in to comment.