From 91766e5f248ee8e045da5bbd375a75b1f8eddd9b Mon Sep 17 00:00:00 2001 From: Shantnu Kumar Date: Wed, 16 Oct 2024 08:43:19 +0530 Subject: [PATCH] init spinner with a default stderr writer --- cmd/objectstore/objectstore_create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/objectstore/objectstore_create.go b/cmd/objectstore/objectstore_create.go index e3cc4ef2..4bf19b8e 100644 --- a/cmd/objectstore/objectstore_create.go +++ b/cmd/objectstore/objectstore_create.go @@ -112,7 +112,7 @@ var objectStoreCreateCmd = &cobra.Command{ if waitOS { startTime := utility.StartTime() stillCreating := true - s := spinner.New(spinner.CharSets[9], 100*time.Millisecond) + s := spinner.New(spinner.CharSets[9], 100*time.Millisecond, spinner.WithWriter(os.Stderr)) s.Prefix = fmt.Sprintf("Creating an Object Store with maxSize %d, called %s... ", store.MaxSize, store.Name) s.Start()