Merge pull request #1180 from coreos/elog

elog: remove elog
release-2.0
Xiang Li 2014-09-25 11:35:58 -07:00
commit 5feef73a17
2 changed files with 2 additions and 14 deletions

View File

@ -1,11 +0,0 @@
package elog
import (
. "log"
"runtime"
)
func TODO() {
_, file, line, _ := runtime.Caller(1)
Printf("TODO: %s:%d", file, line)
}

View File

@ -10,7 +10,6 @@ import (
"sort"
"strconv"
"github.com/coreos/etcd/elog"
"github.com/coreos/etcd/raft/raftpb"
)
@ -146,12 +145,12 @@ func send(c *http.Client, scheme string, p Peers, m raftpb.Message) {
func httpPost(c *http.Client, url string, data []byte) bool {
resp, err := c.Post(url, "application/protobuf", bytes.NewBuffer(data))
if err != nil {
elog.TODO()
// TODO: log the error?
return false
}
resp.Body.Close()
if resp.StatusCode != http.StatusNoContent {
elog.TODO()
// TODO: log the error?
return false
}
return true