Log schedule operations correctly

This commit is contained in:
prpr 2023-07-26 21:42:11 +01:00
parent c60ac50c43
commit bed05f0820

View File

@ -702,7 +702,16 @@ rsv method insert {{table pending} {force 0} {defer 0}} {
$rsvdb query "delete from ${table} where ulslot = $ulslot;" $rsvdb query "delete from ${table} where ulslot = $ulslot;"
$rsvdb query $query {*}$bvals $rsvdb query $query {*}$bvals
set actstr [format "%scheduled" $($action ? "Uns" : "S")] switch $action {
0 { set actstr "Scheduled" }
1 { set actstr "Unscheduled" }
2 { set actstr "Set AR" }
3 { set actstr "Set padding" }
4 { set actstr "Set folder name" }
5 { set actstr "Set skip" }
6 { set actstr "Refresh" }
default { set actstr "Unknown action $action" }
}
system plog activity "$actstr [$self name] @ $nsttime" system plog activity "$actstr [$self name] @ $nsttime"
if {$table eq "pending" && !$defer} { rsv commit } if {$table eq "pending" && !$defer} { rsv commit }