Merge "remote: fix crash due to nil logger"

This commit is contained in:
Brad Fitzpatrick 2013-12-26 16:29:11 +00:00 committed by Gerrit Code Review
commit 6ef671249b
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,8 @@ package remote
import (
"io"
"log"
"os"
"camlistore.org/pkg/blob"
"camlistore.org/pkg/blobserver"
@ -68,6 +70,7 @@ func newFromConfig(_ blobserver.Loader, config jsonconfig.Obj) (storage blobserv
if err != nil {
return nil, err
}
client.SetLogger(log.New(os.Stderr, "remote", log.LstdFlags))
sto := &remoteStorage{
client: client,
}