{"action":"opened","issue":{"url":"https://api.github.com/repos/project-hatohol/hatohol/issues/1443","labels_url":"https://api.github.com/repos/project-hatohol/hatohol/issues/1443/labels{/name}","comments_url":"https://api.github.com/repos/project-hatohol/hatohol/issues/1443/comments","events_url":"https://api.github.com/repos/project-hatohol/hatohol/issues/1443/events","html_url":"https://github.com/project-hatohol/hatohol/issues/1443","id":94223731,"number":1443,"title":"[HAP2] エラーログ","user":{"login":"ashie","id":135104,"avatar_url":"https://avatars.githubusercontent.com/u/135104?v=3","gravatar_id":"","url":"https://api.github.com/users/ashie","html_url":"https://github.com/ashie","followers_url":"https://api.github.com/users/ashie/followers","following_url":"https://api.github.com/users/ashie/following{/other_user}","gists_url":"https://api.github.com/users/ashie/gists{/gist_id}","starred_url":"https://api.github.com/users/ashie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashie/subscriptions","organizations_url":"https://api.github.com/users/ashie/orgs","repos_url":"https://api.github.com/users/ashie/repos","events_url":"https://api.github.com/users/ashie/events{/privacy}","received_events_url":"https://api.github.com/users/ashie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-10T06:09:02Z","updated_at":"2015-07-10T06:09:02Z","closed_at":null,"body":"HAP2を使っていて、以下の点が気になった。\r\n\r\n* Zabbix APIのエラーをログに残して欲しい。認証エラーであっても、以下のような直接的でないエラーとして記録される\r\n```\r\nERROR:root:Unexpected error: <type 'exceptions.TypeError'>, 'NoneType' object is not iterable, ['  File \"/usr/local/lib/python2.7/dist-packages/hatohol/haplib.py\", line 999, in __poll_in_try_block\\n    self.poll()\\n', '  File \"/usr/local/libexec/hatohol/hap2/hatohol/hap2_zabbix_api.py\", line 139, in poll\\n    self.update_hosts_and_host_group_membership()\\n', '  File \"/usr/local/libexec/hatohol/hap2/hatohol/hap2_zabbix_api.py\", line 82, in update_hosts_and_host_group_membership\\n    hosts, hg_membership = self.__api.get_hosts()\\n']\r\n^CStop /usr/local/libexec/hatohol/hap2/hatohol/hap2_zabbix_api.py ...\r\n```\r\n* エラーログが上記のようにフォーマットされておらず、読みづらい"}}