)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"ecf6e6b7122abea44a7c2b37408149a57344ebaa","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add __repr__ method for sample.Sample"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"sample.Sample has no string format method, which will cause useless"},{"line_number":10,"context_line":"message when print log. This patch simply uses as_dict for __repr__."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I8b9863a4ac6ee3373e18d36681fbfc4c89732111"},{"line_number":13,"context_line":"Closes-Bug: #1386187"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"9aa7fdbe_c2702776","line":10,"updated":"2014-10-29 11:54:24.000000000","message":"Need to update this to not say as_dict since you\u0027re not doing that anymore.","commit_id":"30e2a0040b57f1fc1c5911ee38f1812ad3fe6c01"}],"ceilometer/sample.py":[{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"a975bcd1d52173ccb51d85091a7efaac7a89653e","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        return copy.copy(self.__dict__)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def __repr__(self):"},{"line_number":77,"context_line":"        return str(self.as_dict())"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    @classmethod"},{"line_number":80,"context_line":"    def from_notification(cls, name, type, volume, unit,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aa7fdbe_59be17af","line":77,"updated":"2014-10-28 04:10:26.000000000","message":"Hi Zhiqiang, IIUC,the as_dict() method will return all the attributes of sample obj, I worry that this will cause massive sample infomation in log file.\n\ncan just only print the sample name (or pollster name) in log?","commit_id":"9b33182e159a8c3d270f4a30da92143bc038ddc1"},{"author":{"_account_id":3012,"name":"Dina Belova","email":"dbelova@mirantis.com","username":"dbelova"},"change_message_id":"a96bc9a83cdb6f1666e7188b1c412fecfb730170","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        return copy.copy(self.__dict__)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def __repr__(self):"},{"line_number":77,"context_line":"        return str(self.as_dict())"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    @classmethod"},{"line_number":80,"context_line":"    def from_notification(cls, name, type, volume, unit,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aa7fdbe_cdb5e17e","line":77,"in_reply_to":"9aa7fdbe_59be17af","updated":"2014-10-28 09:14:19.000000000","message":"I would say info like name + resource_id will be enough for this kind of logging","commit_id":"9b33182e159a8c3d270f4a30da92143bc038ddc1"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"a13c14ea379336862f6092c5b50cef7c1cc230f0","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def __repr__(self):"},{"line_number":77,"context_line":"        return \u0027\u003cname: %s, volume: %s, resource_id: %s\u003e\u0027 % ("},{"line_number":78,"context_line":"            self.name, self.volume, self.resource_id)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    @classmethod"},{"line_number":81,"context_line":"    def from_notification(cls, name, type, volume, unit,"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa7fdbe_11c29152","line":78,"updated":"2014-10-28 18:19:53.000000000","message":"timestamp may be nice?","commit_id":"30e2a0040b57f1fc1c5911ee38f1812ad3fe6c01"}]}
