From d380b3c16b4321d9262a49e065b54f0525da7187 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 20 Feb 2019 21:58:29 +0100 Subject: cache: output the build info message on stderr to avoid breaking scripts --- cache/repo_cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cache/repo_cache.go') diff --git a/cache/repo_cache.go b/cache/repo_cache.go index 2cb6a030..c38eeeeb 100644 --- a/cache/repo_cache.go +++ b/cache/repo_cache.go @@ -194,7 +194,7 @@ func cacheFilePath(repo repository.Repo) string { } func (c *RepoCache) buildCache() error { - fmt.Printf("Building bug cache... ") + _, _ = fmt.Fprintf(os.Stderr, "Building bug cache... ") c.excerpts = make(map[string]*BugExcerpt) @@ -209,7 +209,7 @@ func (c *RepoCache) buildCache() error { c.excerpts[b.Bug.Id()] = NewBugExcerpt(b.Bug, &snap) } - fmt.Println("Done.") + _, _ = fmt.Fprintln(os.Stderr, "Done.") return nil } -- cgit