Merge pull request 'Fix Logs Flushing only every 60 days' (#50) from fix-log-purge-timer into main
All checks were successful
ci/woodpecker/push/cargo-checks Pipeline was successful
ci/woodpecker/pr/cargo-checks Pipeline was successful

Reviewed-on: #50
This commit is contained in:
modulatingforce 2024-03-28 16:05:44 -04:00
commit d7634663fe

View file

@ -122,7 +122,7 @@ impl BotInstance {
tokio::spawn(async {
loop {
let routine_mins = 60 * 60 * 24 ; // Every 1 Day
let routine_mins = 60 * 24 ; // Every 1 Day
// let routine_mins = 1; // Every 1 Minute
Log::remove_old_logs();
Log::info(&format!("Internal Purge Routine Triggered - running every {} mins",routine_mins));