From d06f5afdfcdd9d6f51d2e936c1f3fbda632092bb Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Wed, 25 Mar 2015 00:25:27 -0700 Subject: [PATCH] Using iodine in donut.Start() --- pkg/drivers/donut/donut.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/drivers/donut/donut.go b/pkg/drivers/donut/donut.go index fcb0a25c8..a3accac44 100644 --- a/pkg/drivers/donut/donut.go +++ b/pkg/drivers/donut/donut.go @@ -24,8 +24,10 @@ import ( "strings" "time" + "github.com/minio-io/iodine" "github.com/minio-io/minio/pkg/drivers" "github.com/minio-io/minio/pkg/storage/donut" + "log" ) // donutDriver - creates a new single disk drivers driver using donut @@ -44,7 +46,11 @@ func Start(path string) (chan<- string, <-chan error, drivers.Driver) { s := new(donutDriver) // TODO donut driver should be passed in as Start param and driven by config - s.donut, _ = donut.NewDonut(path) + var err *iodine.Error + s.donut, err = donut.NewDonut(path) + if err != nil { + log.Println(err.EmitHumanReadable()) + } go start(ctrlChannel, errorChannel, s) return ctrlChannel, errorChannel, s