mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Merge pull request #403 from harshavardhana/pr_out_let_donut_driver_use_log_errorln_wrapper
This commit is contained in:
commit
f3f0a3a5f7
@ -27,7 +27,7 @@ import (
|
|||||||
"github.com/minio-io/iodine"
|
"github.com/minio-io/iodine"
|
||||||
"github.com/minio-io/minio/pkg/drivers"
|
"github.com/minio-io/minio/pkg/drivers"
|
||||||
"github.com/minio-io/minio/pkg/storage/donut"
|
"github.com/minio-io/minio/pkg/storage/donut"
|
||||||
"log"
|
"github.com/minio-io/minio/pkg/utils/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// donutDriver - creates a new single disk drivers driver using donut
|
// donutDriver - creates a new single disk drivers driver using donut
|
||||||
@ -50,7 +50,7 @@ func Start(path string) (chan<- string, <-chan error, drivers.Driver) {
|
|||||||
s.donut, err = donut.NewDonut(path)
|
s.donut, err = donut.NewDonut(path)
|
||||||
err = iodine.New(err, map[string]string{"path": path})
|
err = iodine.New(err, map[string]string{"path": path})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Errorln(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
go start(ctrlChannel, errorChannel, s)
|
go start(ctrlChannel, errorChannel, s)
|
||||||
|
Loading…
Reference in New Issue
Block a user