1
0
mirror of https://github.com/ko-build/ko.git synced 2025-11-06 09:19:12 +02:00

Revive progress and warning logs (#203)

These got dropped when we pulled in:
https://github.com/google/go-containerregistry/pull/481

Which doesn't log by default, and requires opting in.
This commit is contained in:
jonjohnsonjr
2020-09-25 11:50:20 -07:00
committed by GitHub
parent d48767339f
commit 4a4d1b02bd
2 changed files with 7 additions and 1 deletions

View File

@@ -16,13 +16,18 @@ package main
import (
"log"
"os"
"github.com/google/go-containerregistry/pkg/logs"
"github.com/google/ko/pkg/commands"
"github.com/spf13/cobra"
)
func main() {
logs.Warn.SetOutput(os.Stderr)
logs.Progress.SetOutput(os.Stderr)
// Parent command to which all subcommands are added.
cmds := &cobra.Command{
Use: "ko",