Update logging behavior

This commit is contained in:
Tom Wiesing 2022-12-01 12:42:04 +01:00
parent 3b78b06fff
commit 6f1ba24761
No known key found for this signature in database
28 changed files with 176 additions and 137 deletions

View file

@ -2,13 +2,13 @@ package component
import (
"context"
"fmt"
"io"
"path/filepath"
"github.com/FAU-CDI/wisski-distillery/internal/models"
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
"github.com/FAU-CDI/wisski-distillery/pkg/fsx"
"github.com/FAU-CDI/wisski-distillery/pkg/logging"
"github.com/pkg/errors"
)
@ -93,7 +93,7 @@ func (bc *stagingContext) sendPath(path string) {
return
}
fmt.Fprintln(bc.progress, dst)
logging.Progress(bc.progress, bc.ctx, dst)
bc.manifest <- dst
}