avoid missing configuration file error
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
|||||||
"code.google.com/p/weed-fs/go/storage"
|
"code.google.com/p/weed-fs/go/storage"
|
||||||
"errors"
|
"errors"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -54,8 +55,8 @@ func (t *Topology) loadConfiguration(configurationFile string) error {
|
|||||||
if e == nil {
|
if e == nil {
|
||||||
t.configuration, e = NewConfiguration(b)
|
t.configuration, e = NewConfiguration(b)
|
||||||
return e
|
return e
|
||||||
}else{
|
} else {
|
||||||
log.Println("Using default configurations.")
|
log.Println("Using default configurations.")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user