{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/3556","labels_url":"https://api.github.com/repos/coreos/etcd/issues/3556/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/3556/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/3556/events","html_url":"https://github.com/coreos/etcd/pull/3556","id":107287942,"number":3556,"title":"etcdmain: better logging when user forget to set initial flags","user":{"login":"xiang90","id":4479947,"avatar_url":"https://avatars.githubusercontent.com/u/4479947?v=3","gravatar_id":"","url":"https://api.github.com/users/xiang90","html_url":"https://github.com/xiang90","followers_url":"https://api.github.com/users/xiang90/followers","following_url":"https://api.github.com/users/xiang90/following{/other_user}","gists_url":"https://api.github.com/users/xiang90/gists{/gist_id}","starred_url":"https://api.github.com/users/xiang90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiang90/subscriptions","organizations_url":"https://api.github.com/users/xiang90/orgs","repos_url":"https://api.github.com/users/xiang90/repos","events_url":"https://api.github.com/users/xiang90/events{/privacy}","received_events_url":"https://api.github.com/users/xiang90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-18T22:19:27Z","updated_at":"2015-09-21T03:15:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coreos/etcd/pulls/3556","html_url":"https://github.com/coreos/etcd/pull/3556","diff_url":"https://github.com/coreos/etcd/pull/3556.diff","patch_url":"https://github.com/coreos/etcd/pull/3556.patch"},"body":"Fix https://github.com/coreos/etcd/issues/3552\r\n\r\nNow it will log as if you forgot to set both `--initial-cluster` and `--discovery` and the configuration does not match.\r\n\r\n```\r\n2015-09-18 15:19:16.721741 I | etcdmain: advertise URLs of \"default\" do not match in --initial-advertise-peer-urls [http://example.com:1234] and --initial-cluster [http://localhost:2380 http://localhost:7001]\r\n2015-09-18 15:19:16.721746 I | etcdmain: forgot to set --initial-cluster flag?\r\n2015-09-18 15:19:16.721754 I | etcdmain: if you want to use discovery service, please set --discovery flag.\r\n```"},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/141865561","html_url":"https://github.com/coreos/etcd/pull/3556#issuecomment-141865561","issue_url":"https://api.github.com/repos/coreos/etcd/issues/3556","id":141865561,"user":{"login":"xiang90","id":4479947,"avatar_url":"https://avatars.githubusercontent.com/u/4479947?v=3","gravatar_id":"","url":"https://api.github.com/users/xiang90","html_url":"https://github.com/xiang90","followers_url":"https://api.github.com/users/xiang90/followers","following_url":"https://api.github.com/users/xiang90/following{/other_user}","gists_url":"https://api.github.com/users/xiang90/gists{/gist_id}","starred_url":"https://api.github.com/users/xiang90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiang90/subscriptions","organizations_url":"https://api.github.com/users/xiang90/orgs","repos_url":"https://api.github.com/users/xiang90/repos","events_url":"https://api.github.com/users/xiang90/events{/privacy}","received_events_url":"https://api.github.com/users/xiang90/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T03:15:21Z","updated_at":"2015-09-21T03:15:21Z","body":"@crawford \r\n\r\nWith all these explanation, I still cannot think a better error message than simply telling the fact that the `two flags do not match`.\r\n\r\n> Well, this is good to know. You know all of the cases; you come up with a better message.\r\n\r\nAgain, I will not change the error message to explain the causes and you agreed on that. If we cannot come up with a better error message. I would rather keep the explanation here. "}}