)]}'
{"barbican/api/controllers/secrets.py":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"60be9f439bc43d7f83797583582ef173ab8089e8","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"da9b358b_511d2972","updated":"2015-03-30 07:37:14.000000000","message":"Instead of adding a lot of LOG.info\u0027s in the controllers, wouldn\u0027t it make sense to add a single LOG.info in the \"handle_exceptions\" decorator? we already have a description of the action that\u0027s being taken, and the external_project_id could be retrieved from the kwargs.","commit_id":"3fc0e21f8d1ef32b5ca62fcbc1fdbcbb8e3ad26b"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"2fdfa00c62f0e2b2392a398af5ea5b7e0adf1352","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"da9b358b_dfeec98a","in_reply_to":"da9b358b_511d2972","updated":"2015-03-30 18:20:49.000000000","message":"Sooo, I\u0027ve been thinking about this for a while. I\u0027m not sure that\u0027s the right place to put a LOG.info. handle_exceptions is specifically for that, not log that reports on successful unit of work. I guess I\u0027m trying to figure out how to best comply with the OpenStack logging guidelines (http://specs.openstack.org/openstack/openstack-specs/specs/log-guidelines.html) and mixing error handling and successful unit of work reporting doesn\u0027t seem to fit. Thoughts?","commit_id":"3fc0e21f8d1ef32b5ca62fcbc1fdbcbb8e3ad26b"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"1eb76a3ddddc195b13260f8b3f179bda25da0570","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"da9b358b_851110af","in_reply_to":"da9b358b_dfeec98a","updated":"2015-03-30 19:01:31.000000000","message":"Well, I do agree that the handle_exceptions could be an inappropriate place for this, but on the other hand, I don\u0027t feel too keep on having those LOG.info around the code, if all they\u0027re doing is say that some action was finished and the project it affected. Would rather have a decorator then for logging. What do you think?","commit_id":"3fc0e21f8d1ef32b5ca62fcbc1fdbcbb8e3ad26b"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"261830545b3dfadcb2059425c47ffb3453c1f5db","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        if controllers.is_json_request_accept(pecan.request):"},{"line_number":73,"context_line":"            resp \u003d self._on_get_secret_metadata(self.secret, **kwargs)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"            LOG.info(\u0027Retrieved secret metadata for project: %s\u0027,"},{"line_number":76,"context_line":"                     external_project_id)"},{"line_number":77,"context_line":"            return resp"},{"line_number":78,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"da9b358b_17fd353a","line":75,"updated":"2015-03-30 20:14:38.000000000","message":"Please localize this message.","commit_id":"3fc0e21f8d1ef32b5ca62fcbc1fdbcbb8e3ad26b"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"5e873b7e3f3d7fdda6352e52b7d0bd27ccf30793","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        if controllers.is_json_request_accept(pecan.request):"},{"line_number":73,"context_line":"            resp \u003d self._on_get_secret_metadata(self.secret, **kwargs)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"            LOG.info(\u0027Retrieved secret metadata for project: %s\u0027,"},{"line_number":76,"context_line":"                     external_project_id)"},{"line_number":77,"context_line":"            return resp"},{"line_number":78,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"da9b358b_ca3720af","line":75,"in_reply_to":"da9b358b_17fd353a","updated":"2015-03-30 20:27:52.000000000","message":"Just adding more info per the IRC meeting today...see http://docs.openstack.org/developer/oslo.i18n/guidelines.html#log-translation. There are examples of this in our code base as well, using the \u0027u._LI(...)\u0027 oslo i!8n function.","commit_id":"3fc0e21f8d1ef32b5ca62fcbc1fdbcbb8e3ad26b"}]}
