)]}'
{
  "commit": "baf594b24a6b00cdcd3de94494619a64dc3eb153",
  "tree": "d908c80d863e72c8a56d68928e85d17ce43c04e2",
  "parents": [
    "a1fd98c6b0c4c5bc9e36ac45154e6a44d4c31bcb"
  ],
  "author": {
    "name": "Sergey Kacheev",
    "email": "s.kacheev@gmail.com",
    "time": "Thu Jul 22 17:36:15 2021"
  },
  "committer": {
    "name": "Sergey Kacheev",
    "email": "s.kacheev@gmail.com",
    "time": "Thu Jul 22 17:36:15 2021"
  },
  "message": "etcdserver: add zap.AddCallerSkip in NewRaftLoggerZap\n\nThe file `zap_raft.go` adds the raft.Logger proxy logger on top of `*zap.Logger`.\nAdding a proxy requires adding the option `zap.AddCallerSkip(1)`,\nso that the logging message specifies the correct caller,\ntwo of the three constructors in the `zap_raft.go` adds this option.\nThis commit fixes the third constructor so that it also adds `zap.AddCallerSkip`.\n\nBefore fix:\n`{\"level\":\"info\",\"ts\":\"2021-07-22T17:46:01.435Z\",\"logger\":\"raft\",\"caller\":\"etcdserver/zap_raft.go:77\",\"msg\":\"bd07d29169ff0c5a [logterm: 2, index: 8, vote: 38447ba545569bbe] ignored MsgPreVote from c7baeaad79d6d5ed [logterm: 2, index: 8] at term 2: lease is not expired (remaining ticks: 10)\"}`\n\nAfter fix:\n`{\"level\":\"info\",\"ts\":\"2021-07-22T17:46:51.227Z\",\"logger\":\"raft\",\"caller\":\"raft/raft.go:859\",\"msg\":\"bd07d29169ff0c5a [logterm: 2, index: 8, vote: c7baeaad79d6d5ed] ignored MsgPreVote from 38447ba545569bbe [logterm: 2, index: 8] at term 2: lease is not expired (remaining ticks: 9)\"}`\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e8174f396ff0e3623602367a2d8a15a62fa2effd",
      "old_mode": 33188,
      "old_path": "server/etcdserver/zap_raft.go",
      "new_id": "55139c04b35c57462423db6619b330cf00a3dc28",
      "new_mode": 33188,
      "new_path": "server/etcdserver/zap_raft.go"
    }
  ]
}
