Move error logging for block-not-found from GetBlock to GetBlockHandler.
authorWard Vandewege <ward@curoverse.com>
Wed, 2 Jul 2014 01:27:34 +0000 (21:27 -0400)
committerWard Vandewege <ward@curoverse.com>
Wed, 2 Jul 2014 01:48:17 +0000 (21:48 -0400)
commit7b23dea6aaf66492ddb0e204cf0eae4b159f2a1c
tree19d825c2d0a32301191096a6bc3c2f8bd505abf1
parentf76bc1b30f5bfc32722d2639e609c12531dc8319
Move error logging for block-not-found from GetBlock to GetBlockHandler.

It doesn't belong in GetBlock because GetBlock is also called from
PutBlock, which checks to see if a block exists before it writes it
again.

In other words, in the most common scenario (a PUT of a new block), Keep
should not print a bogus error message.
services/keep/src/keep/keep.go