Skip to content

Commit

Permalink
chore: logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Dec 22, 2023
1 parent 54a1191 commit 9881a93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package utils

import (
"io"
"log/slog"
)

type GenericProgress struct {
Expand Down Expand Up @@ -31,6 +32,7 @@ func (pt *Progresser) Write(p []byte) (int, error) {
if pt.Updates != nil {
select {
case pt.Updates <- GenericProgress{Completed: pt.Running, Total: pt.Total}:
slog.Debug("sent dl", slog.Int64("running", pt.Running), slog.Int64("total", pt.Total))
default:
}
}
Expand Down

0 comments on commit 9881a93

Please sign in to comment.