mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
Merge pull request #449 from ethersphere/log_err_smoke_test
cmd/swarm: log error on upload
This commit is contained in:
commit
8e857ad4bf
2 changed files with 5 additions and 3 deletions
|
|
@ -42,11 +42,13 @@ func cliUploadAndSync(c *cli.Context) error {
|
|||
|
||||
hash, err := upload(f, endpoints[0])
|
||||
if err != nil {
|
||||
log.Error(err.Error())
|
||||
return err
|
||||
}
|
||||
|
||||
fhash, err := digest(f)
|
||||
if err != nil {
|
||||
log.Error(err.Error())
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -319,9 +319,9 @@ func (self *Api) Get(key storage.Key, path string) (reader *storage.LazyChunkRea
|
|||
return
|
||||
}
|
||||
|
||||
log.Trace("trie getting entry", "key", key, "path", path)
|
||||
log.Debug("trie getting entry", "key", key, "path", path)
|
||||
entry, _ := trie.getEntry(path)
|
||||
log.Trace("trie got entry", "key", key, "path", path)
|
||||
log.Debug("trie got entry", "key", key, "path", path, "entry.Hash", entry.Hash)
|
||||
|
||||
if entry != nil {
|
||||
// we want to be able to serve Mutable Resource Updates transparently using the bzz:// scheme
|
||||
|
|
@ -343,7 +343,7 @@ func (self *Api) Get(key storage.Key, path string) (reader *storage.LazyChunkRea
|
|||
return
|
||||
} else {
|
||||
mimeType = entry.ContentType
|
||||
log.Trace("content lookup key", "key", key, "mimetype", mimeType)
|
||||
log.Debug("content lookup key", "key", key, "mimetype", mimeType)
|
||||
reader, _ = self.dpa.Retrieve(key)
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue