)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"6636eabf8899d3a2a460a1225fce8e1c4217a8fd","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Move from Python logging to Openstack logging"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Replacing usage of python standard logging module with Openstack commong"},{"line_number":10,"context_line":"logging module.Apart from the said replacements, this patch also removes"},{"line_number":11,"context_line":"basicConfig() setup from a couple of modules since its not needed."},{"line_number":12,"context_line":"Similarly we dont need to set the logging level specifically using the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"baada198_d6f20e04","line":9,"updated":"2014-08-01 22:46:43.000000000","message":"nit: common","commit_id":"03ed7a4555f9f62cc98ba41dbe8f2ba19a3dceec"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"6636eabf8899d3a2a460a1225fce8e1c4217a8fd","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Move from Python logging to Openstack logging"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Replacing usage of python standard logging module with Openstack commong"},{"line_number":10,"context_line":"logging module.Apart from the said replacements, this patch also removes"},{"line_number":11,"context_line":"basicConfig() setup from a couple of modules since its not needed."},{"line_number":12,"context_line":"Similarly we dont need to set the logging level specifically using the"},{"line_number":13,"context_line":"setLevel() method because openstack logging wrapper handles the logging"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"baada198_f6dab277","line":10,"updated":"2014-08-01 22:46:43.000000000","message":"nit: missing space.","commit_id":"03ed7a4555f9f62cc98ba41dbe8f2ba19a3dceec"}],"neutron/common/utils.py":[{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"eee3db9a844e6004dbde5db2405404aa4f72e89c","unresolved":false,"context_lines":[{"line_number":263,"context_line":""},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"def log_opt_values(log):"},{"line_number":266,"context_line":"    cfg.CONF.log_opt_values(log, logging.logging.DEBUG)"},{"line_number":267,"context_line":""},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"def is_valid_vlan_tag(vlan):"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_5a6d5802","line":266,"updated":"2014-08-01 12:59:38.000000000","message":"Am I missing something, where does logging get imported? Shouldn\u0027t you have an import like \"from neutron.openstack.common import log as logging\"","commit_id":"55f8f74c71ac811bd624b08e8ec1a92bdb33eed7"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"72be2bcbda6a12323b0096c22bac70962ce925df","unresolved":false,"context_lines":[{"line_number":263,"context_line":""},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"def log_opt_values(log):"},{"line_number":266,"context_line":"    cfg.CONF.log_opt_values(log, logging.logging.DEBUG)"},{"line_number":267,"context_line":""},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"def is_valid_vlan_tag(vlan):"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_8b776fd0","line":266,"updated":"2014-08-04 09:41:44.000000000","message":"you are assuming things about openstack.common.log internals: ie: that the logging module is imported and imported as \"logging\".","commit_id":"a92c38abd9ca5a91c28f6c37e7cea5222c98a119"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"c7542ccc13a624be9dff5deadd1ea69bd7f51a31","unresolved":false,"context_lines":[{"line_number":263,"context_line":""},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"def log_opt_values(log):"},{"line_number":266,"context_line":"    cfg.CONF.log_opt_values(log, logging.logging.DEBUG)"},{"line_number":267,"context_line":""},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"def is_valid_vlan_tag(vlan):"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_36588656","line":266,"in_reply_to":"baada198_36e166fc","updated":"2014-08-04 10:04:23.000000000","message":"Openstack\u0027s log module does not expose constants for log severity.\n\nbeyond what Cedric says logging.logging seems a bit strange anyway, so I would suggest to keep the code as it is\nMaybe you can check oslo-incubator to see if it\u0027s ok to provide log severity constants in openstack\u0027s logging module.","commit_id":"a92c38abd9ca5a91c28f6c37e7cea5222c98a119"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"eb75b1f6b11ceb3707d25f8f06a8476309194226","unresolved":false,"context_lines":[{"line_number":263,"context_line":""},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"def log_opt_values(log):"},{"line_number":266,"context_line":"    cfg.CONF.log_opt_values(log, logging.logging.DEBUG)"},{"line_number":267,"context_line":""},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"def is_valid_vlan_tag(vlan):"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_36e166fc","line":266,"in_reply_to":"baada198_8b776fd0","updated":"2014-08-04 09:46:09.000000000","message":"from neutron.openstack.common import log as logging  ?","commit_id":"a92c38abd9ca5a91c28f6c37e7cea5222c98a119"}],"neutron/db/migration/alembic_migrations/heal_script.py":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"c7542ccc13a624be9dff5deadd1ea69bd7f51a31","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def heal():"},{"line_number":37,"context_line":"    LOG.setLevel(logging.INFO)"},{"line_number":38,"context_line":"    if context.is_offline_mode():"},{"line_number":39,"context_line":"        return"},{"line_number":40,"context_line":"    models_metadata \u003d frozen_models.get_metadata()"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_96179253","side":"PARENT","line":37,"updated":"2014-08-04 10:04:23.000000000","message":"This was done for a precise reason.\nIf not done this way, the heal script will start spewing a lot of pointless warning messages from alembic.\n\nConsider not altering this module, please.","commit_id":"091f02351a2185055a9ec672ce3270cbe346b702"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"b7479988f6dec399a6ed4e2ac7bc746ae81f9a40","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    # This is needed else the heal script will start spewing"},{"line_number":38,"context_line":"    # a lot of pointless warning messages from alembic."},{"line_number":39,"context_line":"    LOG.setLevel(logging.INFO)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    if context.is_offline_mode():"},{"line_number":42,"context_line":"        return"},{"line_number":43,"context_line":"    models_metadata \u003d frozen_models.get_metadata()"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_c57e6be3","line":40,"updated":"2014-08-05 21:39:19.000000000","message":"nit: unnecessary whitespace change.","commit_id":"7f77ac62f5b75bc642945823fdddaedeac8e54a5"}],"neutron/plugins/cisco/common/cisco_credentials_v2.py":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"6636eabf8899d3a2a460a1225fce8e1c4217a8fd","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.plugins.cisco.common import config"},{"line_number":22,"context_line":"from neutron.plugins.cisco.db import network_db_v2 as cdb"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"logging.getLogger(const.LOGGER_COMPONENT_NAME)"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"class Store(object):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_d6404e08","line":24,"updated":"2014-08-01 22:46:43.000000000","message":"I don\u0027t think this file does anything with logging so we can delete this line and 17?","commit_id":"03ed7a4555f9f62cc98ba41dbe8f2ba19a3dceec"}],"neutron/plugins/cisco/nexus/cisco_nexus_plugin_v2.py":[{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"c4a874a82d27b985c578c1eb9e425fb751ab5bd1","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"from neutron.openstack.common import excutils"},{"line_number":27,"context_line":"from neutron.openstack.common import importutils"},{"line_number":28,"context_line":"from neutron.openstack.commong import log as logging"},{"line_number":29,"context_line":"from neutron.plugins.cisco.common import cisco_constants as const"},{"line_number":30,"context_line":"from neutron.plugins.cisco.common import cisco_exceptions as cisco_exc"},{"line_number":31,"context_line":"from neutron.plugins.cisco.common import config as conf"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_f5ce3db6","line":28,"updated":"2014-08-01 13:02:53.000000000","message":"Typo: commong","commit_id":"55f8f74c71ac811bd624b08e8ec1a92bdb33eed7"}],"neutron/plugins/vmware/plugins/base.py":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"c7542ccc13a624be9dff5deadd1ea69bd7f51a31","unresolved":false,"context_lines":[{"line_number":2082,"context_line":""},{"line_number":2083,"context_line":"    def _rollback_gw_device(self, context, device_id,"},{"line_number":2084,"context_line":"                            gw_data\u003dNone, new_status\u003dNone,"},{"line_number":2085,"context_line":"                            is_create\u003dFalse, log_level\u003dlogging.logging.ERROR):"},{"line_number":2086,"context_line":"        LOG.log(log_level,"},{"line_number":2087,"context_line":"                _(\"Rolling back database changes for gateway device %s \""},{"line_number":2088,"context_line":"                  \"because of an error in the NSX backend\"), device_id)"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_f11e185d","line":2085,"updated":"2014-08-04 10:04:23.000000000","message":"again, logging.loggign sounds not really useful.\nMaybe for this particular case we can just use LOG.debug, and remove the parameter?\n\n(I\u0027d say yes - and I wrote the original code!)","commit_id":"a92c38abd9ca5a91c28f6c37e7cea5222c98a119"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"b7479988f6dec399a6ed4e2ac7bc746ae81f9a40","unresolved":false,"context_lines":[{"line_number":2082,"context_line":""},{"line_number":2083,"context_line":"    def _rollback_gw_device(self, context, device_id, gw_data\u003dNone,"},{"line_number":2084,"context_line":"                            new_status\u003dNone, is_create\u003dFalse):"},{"line_number":2085,"context_line":"        LOG.debug(_(\"Rolling back database changes for gateway device %s \""},{"line_number":2086,"context_line":"                    \"because of an error in the NSX backend\"), device_id)"},{"line_number":2087,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":2088,"context_line":"            query \u003d self._model_query("}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_c5558b53","line":2085,"updated":"2014-08-05 21:39:19.000000000","message":"nit: remove the _( as we don\u0027t need this on debug statements","commit_id":"7f77ac62f5b75bc642945823fdddaedeac8e54a5"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"d60ea1cef6f998195f191befc643f4d0e139e9d4","unresolved":false,"context_lines":[{"line_number":2083,"context_line":"    def _rollback_gw_device(self, context, device_id, gw_data\u003dNone,"},{"line_number":2084,"context_line":"                            new_status\u003dNone, is_create\u003dFalse):"},{"line_number":2085,"context_line":"        LOG.debug(\"Rolling back database changes for gateway device %s \""},{"line_number":2086,"context_line":"                  \"because of an error in the NSX backend\", device_id)"},{"line_number":2087,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":2088,"context_line":"            query \u003d self._model_query("},{"line_number":2089,"context_line":"                context, networkgw_db.NetworkGatewayDevice).filter("}],"source_content_type":"text/x-python","patch_set":11,"id":"baada198_34075420","line":2086,"updated":"2014-08-06 00:06:24.000000000","message":"why to change error to debug?","commit_id":"696124a3eae43775992e25e8b81396e8993b167a"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"9596fba5dc53b78fe6c85003c80542a36658e577","unresolved":false,"context_lines":[{"line_number":2083,"context_line":"    def _rollback_gw_device(self, context, device_id, gw_data\u003dNone,"},{"line_number":2084,"context_line":"                            new_status\u003dNone, is_create\u003dFalse):"},{"line_number":2085,"context_line":"        LOG.debug(\"Rolling back database changes for gateway device %s \""},{"line_number":2086,"context_line":"                  \"because of an error in the NSX backend\", device_id)"},{"line_number":2087,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":2088,"context_line":"            query \u003d self._model_query("},{"line_number":2089,"context_line":"                context, networkgw_db.NetworkGatewayDevice).filter("}],"source_content_type":"text/x-python","patch_set":11,"id":"baada198_77e2ae31","line":2086,"in_reply_to":"baada198_34075420","updated":"2014-08-06 00:10:12.000000000","message":"I agreed this change with the author in a previous patch set.\nThere was no reason for a variable log level in this routine, and in this way code maintanability is enhanced.","commit_id":"696124a3eae43775992e25e8b81396e8993b167a"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"83dcf886c26afd250e372a9247eec319af7d564f","unresolved":false,"context_lines":[{"line_number":2083,"context_line":"    def _rollback_gw_device(self, context, device_id, gw_data\u003dNone,"},{"line_number":2084,"context_line":"                            new_status\u003dNone, is_create\u003dFalse):"},{"line_number":2085,"context_line":"        LOG.debug(\"Rolling back database changes for gateway device %s \""},{"line_number":2086,"context_line":"                  \"because of an error in the NSX backend\", device_id)"},{"line_number":2087,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":2088,"context_line":"            query \u003d self._model_query("},{"line_number":2089,"context_line":"                context, networkgw_db.NetworkGatewayDevice).filter("}],"source_content_type":"text/x-python","patch_set":11,"id":"baada198_b7e44643","line":2086,"in_reply_to":"baada198_34075420","updated":"2014-08-06 00:08:38.000000000","message":"replying to myself; see a comment in PS8.","commit_id":"696124a3eae43775992e25e8b81396e8993b167a"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"6f688889bde783a5f821e8d21d595d7b7800c6ed","unresolved":false,"context_lines":[{"line_number":2083,"context_line":"    def _rollback_gw_device(self, context, device_id, gw_data\u003dNone,"},{"line_number":2084,"context_line":"                            new_status\u003dNone, is_create\u003dFalse):"},{"line_number":2085,"context_line":"        LOG.debug(\"Rolling back database changes for gateway device %s \""},{"line_number":2086,"context_line":"                  \"because of an error in the NSX backend\", device_id)"},{"line_number":2087,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":2088,"context_line":"            query \u003d self._model_query("},{"line_number":2089,"context_line":"                context, networkgw_db.NetworkGatewayDevice).filter("}],"source_content_type":"text/x-python","patch_set":11,"id":"baada198_fb6ea4c7","line":2086,"in_reply_to":"baada198_77e2ae31","updated":"2014-08-06 06:13:33.000000000","message":"Sorry I agree I think we need to make this ERROR","commit_id":"696124a3eae43775992e25e8b81396e8993b167a"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"38b105e1e88934aa5df5e54756dabcd281a69ac9","unresolved":false,"context_lines":[{"line_number":2083,"context_line":"    def _rollback_gw_device(self, context, device_id, gw_data\u003dNone,"},{"line_number":2084,"context_line":"                            new_status\u003dNone, is_create\u003dFalse):"},{"line_number":2085,"context_line":"        LOG.debug(\"Rolling back database changes for gateway device %s \""},{"line_number":2086,"context_line":"                  \"because of an error in the NSX backend\", device_id)"},{"line_number":2087,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":2088,"context_line":"            query \u003d self._model_query("},{"line_number":2089,"context_line":"                context, networkgw_db.NetworkGatewayDevice).filter("}],"source_content_type":"text/x-python","patch_set":11,"id":"baada198_4f8eea7b","line":2086,"in_reply_to":"baada198_fb6ea4c7","updated":"2014-08-06 08:20:38.000000000","message":"Aaron, the usage of this function is always wrapped in a save_and_reraise\nI initially defaulted the log level to error, but then thought it was not necessary","commit_id":"696124a3eae43775992e25e8b81396e8993b167a"}],"neutron/service.py":[{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"eee3db9a844e6004dbde5db2405404aa4f72e89c","unresolved":false,"context_lines":[{"line_number":28,"context_line":"from neutron.openstack.common import excutils"},{"line_number":29,"context_line":"from neutron.openstack.common import importutils"},{"line_number":30,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":31,"context_line":"from neutron.openstack.common import loopingcall"},{"line_number":32,"context_line":"from neutron.openstack.common import service as common_service"},{"line_number":33,"context_line":"from neutron import wsgi"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_953501dd","line":31,"updated":"2014-08-01 12:59:38.000000000","message":"You seem to be missing \"from neutron.openstack.common import log as logging\" here too.","commit_id":"55f8f74c71ac811bd624b08e8ec1a92bdb33eed7"}],"neutron/tests/unit/cisco/test_network_plugin.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"0c6bec3b26c0a0e93f4e5fd0e3fd5386f317146c","unresolved":false,"context_lines":[{"line_number":923,"context_line":"                                                *args, **kwargs)"},{"line_number":924,"context_line":"                patched_plugin.side_effect \u003d side_effect"},{"line_number":925,"context_line":"                res \u003d self._create_network_bulk(self.fmt, 2, \u0027test\u0027, True)"},{"line_number":926,"context_line":"                LOG.debug(_(\u0027response is %s\u0027), res)"},{"line_number":927,"context_line":"                # We expect an internal server error as we injected a fault"},{"line_number":928,"context_line":"                self._validate_behavior_on_bulk_failure("},{"line_number":929,"context_line":"                    res,"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_25fa1c77","line":926,"updated":"2014-08-03 23:43:58.000000000","message":"We no longer need to mark debug messages translatable.\n\n- http://docs.openstack.org/developer/oslo.i18n/guidelines.html\n- https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation","commit_id":"a92c38abd9ca5a91c28f6c37e7cea5222c98a119"}],"neutron/tests/unit/db/loadbalancer/test_db_loadbalancer.py":[{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"eee3db9a844e6004dbde5db2405404aa4f72e89c","unresolved":false,"context_lines":[{"line_number":30,"context_line":"import neutron.extensions"},{"line_number":31,"context_line":"from neutron.extensions import loadbalancer"},{"line_number":32,"context_line":"from neutron import manager"},{"line_number":33,"context_line":"from neutron.openstack.commong import log as logging"},{"line_number":34,"context_line":"from neutron.plugins.common import constants"},{"line_number":35,"context_line":"from neutron.services.loadbalancer import ("},{"line_number":36,"context_line":"    plugin as loadbalancer_plugin"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_1578118e","line":33,"updated":"2014-08-01 12:59:38.000000000","message":"typo: commong","commit_id":"55f8f74c71ac811bd624b08e8ec1a92bdb33eed7"}],"neutron/tests/unit/vmware/apiclient/test_api_eventlet_request.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"de80e46ff338de3d7e132b971f915cded65405e8","unresolved":false,"context_lines":[{"line_number":71,"context_line":"            a._handle_request \u003d mock.Mock()"},{"line_number":72,"context_line":"            a.start()"},{"line_number":73,"context_line":"            eventlet.greenthread.sleep(0.1)"},{"line_number":74,"context_line":"            LOG.info(_(\u0027_handle_request called: %s\u0027), a._handle_request.called)"},{"line_number":75,"context_line":"        request.EventletApiRequest.joinall()"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def test_join_with_handle_request(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_c0cc9937","line":74,"updated":"2014-08-05 22:09:24.000000000","message":"could you use _LI() instead of _()?","commit_id":"320d822cfeb695c6f3b3acb8f05c027539590b06"}]}
