diff options
Diffstat (limited to 'src/filters/log.rs')
| -rw-r--r-- | src/filters/log.rs | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/src/filters/log.rs b/src/filters/log.rs index bde02e5..30cf0cb 100644 --- a/src/filters/log.rs +++ b/src/filters/log.rs @@ -122,12 +122,12 @@ pub fn log_time(lower: Option<DateTime<Utc>>, upper: Option<DateTime<Utc>>) -> B      Box::new(TimeFilter(lower, upper))  } -/// Like [`after`][after], but ignores the file name for date calculations. +/// Only include logs after the given date, but ignore the file name for date calculations.  pub fn log_after(when: DateTime<Utc>) -> Box<dyn LogFilter> {      log_time(Some(when), None)  } -/// Like [`before`][before], but ignores the file name for date calculations. +/// Only include logs before the given date, but ignore the file name for date calculations.  pub fn log_before(when: DateTime<Utc>) -> Box<dyn LogFilter> {      log_time(None, Some(when))  } @@ -148,6 +148,7 @@ pub fn challenge_mote() -> Box<dyn LogFilter> {  #[cfg(test)]  mod tests { +    use chrono::TimeZone;      use super::*;      #[test]  | 
