Skip to content

Commit

Permalink
Update TemporalStasis (Gracefully handle uid & token cache invalidation)
Browse files Browse the repository at this point in the history
  • Loading branch information
WorkingRobot committed Jan 29, 2025
1 parent adc09d9 commit dc0f272
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions web/src/crons/refresh_travel_states.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ impl CronJob for RefreshTravelStates {
Some(line) => line,
};

if line.starts_with("[ERROR] ") {
log::error!("{}", &line[8..]);
continue;
}
if line.starts_with("[WARN] ") {
log::warn!("{}", &line[7..]);
continue;
}
if line.starts_with("[INFO] ") {
log::info!("{}", &line[7..]);
continue;
Expand All @@ -125,8 +133,8 @@ impl CronJob for RefreshTravelStates {
log::trace!("{}", &line[10..]);
continue;
}
if line.starts_with("[WARN] ") {
log::warn!("{}", &line[7..]);
if line.starts_with("[DEBUG] ") {
log::debug!("{}", &line[8..]);
continue;
}

Expand Down

0 comments on commit dc0f272

Please sign in to comment.