chore: add log

This commit is contained in:
Simon Ding
2024-07-12 16:48:41 +08:00
parent 3da71c1f9f
commit 9dae98eae5
2 changed files with 3 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ func (s *Server) checkTasks() {
log.Infof("begin check tasks...")
for id, t := range s.tasks {
if !t.Exists() {
log.Infof("task no longer exists: %v", t.Name())
continue
}
log.Infof("task (%s) percentage done: %d%%", t.Name(), t.Progress())