{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/pushgateway/issues/55","labels_url":"https://api.github.com/repos/prometheus/pushgateway/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/pushgateway/issues/55/comments","events_url":"https://api.github.com/repos/prometheus/pushgateway/issues/55/events","html_url":"https://github.com/prometheus/pushgateway/issues/55","id":104745956,"number":55,"title":"Improve debug logging","user":{"login":"beorn7","id":5609886,"avatar_url":"https://avatars.githubusercontent.com/u/5609886?v=3","gravatar_id":"","url":"https://api.github.com/users/beorn7","html_url":"https://github.com/beorn7","followers_url":"https://api.github.com/users/beorn7/followers","following_url":"https://api.github.com/users/beorn7/following{/other_user}","gists_url":"https://api.github.com/users/beorn7/gists{/gist_id}","starred_url":"https://api.github.com/users/beorn7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beorn7/subscriptions","organizations_url":"https://api.github.com/users/beorn7/orgs","repos_url":"https://api.github.com/users/beorn7/repos","events_url":"https://api.github.com/users/beorn7/events{/privacy}","received_events_url":"https://api.github.com/users/beorn7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"beorn7","id":5609886,"avatar_url":"https://avatars.githubusercontent.com/u/5609886?v=3","gravatar_id":"","url":"https://api.github.com/users/beorn7","html_url":"https://github.com/beorn7","followers_url":"https://api.github.com/users/beorn7/followers","following_url":"https://api.github.com/users/beorn7/following{/other_user}","gists_url":"https://api.github.com/users/beorn7/gists{/gist_id}","starred_url":"https://api.github.com/users/beorn7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beorn7/subscriptions","organizations_url":"https://api.github.com/users/beorn7/orgs","repos_url":"https://api.github.com/users/beorn7/repos","events_url":"https://api.github.com/users/beorn7/events{/privacy}","received_events_url":"https://api.github.com/users/beorn7/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-09-03T17:35:10Z","updated_at":"2015-09-03T18:03:24Z","closed_at":null,"body":"Currently, we don't use leveled logging at all in pushgateway.\r\n\r\nThe original idea was that the pushgateway is so simplistic, all the relevant information would be in the HTTP response.\r\n\r\nAs it turns out, clients tend to never display the body of an HTTP response with an error code.\r\n\r\nFor convenience, consider introducing leveled logging so that client-induced errors (invalid payload) are logged at a low level like INFO or DEBUG."},"comment":{"url":"https://api.github.com/repos/prometheus/pushgateway/issues/comments/137529876","html_url":"https://github.com/prometheus/pushgateway/issues/55#issuecomment-137529876","issue_url":"https://api.github.com/repos/prometheus/pushgateway/issues/55","id":137529876,"user":{"login":"beorn7","id":5609886,"avatar_url":"https://avatars.githubusercontent.com/u/5609886?v=3","gravatar_id":"","url":"https://api.github.com/users/beorn7","html_url":"https://github.com/beorn7","followers_url":"https://api.github.com/users/beorn7/followers","following_url":"https://api.github.com/users/beorn7/following{/other_user}","gists_url":"https://api.github.com/users/beorn7/gists{/gist_id}","starred_url":"https://api.github.com/users/beorn7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beorn7/subscriptions","organizations_url":"https://api.github.com/users/beorn7/orgs","repos_url":"https://api.github.com/users/beorn7/repos","events_url":"https://api.github.com/users/beorn7/events{/privacy}","received_events_url":"https://api.github.com/users/beorn7/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T18:03:24Z","updated_at":"2015-09-03T18:03:24Z","body":"While on it: If no persistence file is configured, the following is still logged:\r\n`INFO[0300] Metrics persisted to ''.                      file=diskmetricstore.go line=156`\r\n(But nothing is in fact persisted.)"}}