)]}'
{"os_brick/exception.py":[{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"03c14886c7d632a55d194380c3af3498c2c9eac1","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                # kwargs doesn\u0027t match a variable in the message"},{"line_number":51,"context_line":"                # log the issue and the kwargs"},{"line_number":52,"context_line":"                msg \u003d _LE(\"Exception in string format operation.  msg\u003d\u0027%s\u0027\")"},{"line_number":53,"context_line":"                LOG.exception(msg, self.message)"},{"line_number":54,"context_line":"                for name, value in kwargs.iteritems():"},{"line_number":55,"context_line":"                    # Log string can\u0027t be localized, but still marking it"},{"line_number":56,"context_line":"                    # in case we want to enforce checks."}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_31e35d35","line":53,"updated":"2015-03-19 20:39:09.000000000","message":"according to the guidelines this isn\u0027t correct to do.","commit_id":"59dbfc6951b7563f7c262d2419327e707aae8fc6"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"73ba07a94580842a73ef495979a9c5a5f7502637","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                # kwargs doesn\u0027t match a variable in the message"},{"line_number":51,"context_line":"                # log the issue and the kwargs"},{"line_number":52,"context_line":"                msg \u003d _LE(\"Exception in string format operation.  msg\u003d\u0027%s\u0027\")"},{"line_number":53,"context_line":"                LOG.exception(msg, self.message)"},{"line_number":54,"context_line":"                for name, value in kwargs.iteritems():"},{"line_number":55,"context_line":"                    # Log string can\u0027t be localized, but still marking it"},{"line_number":56,"context_line":"                    # in case we want to enforce checks."}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_b17e6d19","line":53,"in_reply_to":"9a80dd14_31e35d35","updated":"2015-03-19 20:43:40.000000000","message":"This is only being used in the exception. What part do you think is not correct?","commit_id":"59dbfc6951b7563f7c262d2419327e707aae8fc6"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"1777aeb7101a38cd9acd0b000878720c1f1dd1c4","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                # kwargs doesn\u0027t match a variable in the message"},{"line_number":51,"context_line":"                # log the issue and the kwargs"},{"line_number":52,"context_line":"                msg \u003d _LE(\"Exception in string format operation.  msg\u003d\u0027%s\u0027\")"},{"line_number":53,"context_line":"                LOG.exception(msg, self.message)"},{"line_number":54,"context_line":"                for name, value in kwargs.iteritems():"},{"line_number":55,"context_line":"                    # Log string can\u0027t be localized, but still marking it"},{"line_number":56,"context_line":"                    # in case we want to enforce checks."}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_4ac1cf2d","line":53,"in_reply_to":"9a80dd14_67ffd701","updated":"2015-03-20 19:24:34.000000000","message":"I see I phrased it wrong. This is only being used in the LOG.exception. In that case it is the same as LOG.error. The examples above are correct if it was being used for both logging and as a string for an exception object.","commit_id":"59dbfc6951b7563f7c262d2419327e707aae8fc6"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"ca2a4ceb653a5f4b2696647cd564b62087c92397","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                # kwargs doesn\u0027t match a variable in the message"},{"line_number":51,"context_line":"                # log the issue and the kwargs"},{"line_number":52,"context_line":"                msg \u003d _LE(\"Exception in string format operation.  msg\u003d\u0027%s\u0027\")"},{"line_number":53,"context_line":"                LOG.exception(msg, self.message)"},{"line_number":54,"context_line":"                for name, value in kwargs.iteritems():"},{"line_number":55,"context_line":"                    # Log string can\u0027t be localized, but still marking it"},{"line_number":56,"context_line":"                    # in case we want to enforce checks."}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_67ffd701","line":53,"in_reply_to":"9a80dd14_b17e6d19","updated":"2015-03-19 22:02:47.000000000","message":"# WRONG\nmsg \u003d _LE(\u0027There was an error.\u0027)\nLOG.exception(msg)\nraise LocalExceptionClass(msg)\n\n# RIGHT\nmsg \u003d _(\u0027There was an error.\u0027)\nLOG.exception(msg)\nraise LocalExceptionClass(msg)","commit_id":"59dbfc6951b7563f7c262d2419327e707aae8fc6"}],"os_brick/initiator/connector.py":[{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"03c14886c7d632a55d194380c3af3498c2c9eac1","unresolved":false,"context_lines":[{"line_number":120,"context_line":"                arch\u003dplatform.machine(),"},{"line_number":121,"context_line":"                *args, **kwargs):"},{"line_number":122,"context_line":"        \"\"\"Build a Connector object based upon protocol and architecture.\"\"\""},{"line_number":123,"context_line":"        LOG.debug(\"Factory for %s on %s\", protocol, arch)"},{"line_number":124,"context_line":"        protocol \u003d protocol.upper()"},{"line_number":125,"context_line":"        if protocol \u003d\u003d \"ISCSI\":"},{"line_number":126,"context_line":"            return ISCSIConnector(root_helper\u003droot_helper,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_b1b02dfe","line":123,"updated":"2015-03-19 20:39:09.000000000","message":"debug logs aren\u0027t translated, so I\u0027m not sure this is the right thing to do here.","commit_id":"59dbfc6951b7563f7c262d2419327e707aae8fc6"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"73ba07a94580842a73ef495979a9c5a5f7502637","unresolved":false,"context_lines":[{"line_number":120,"context_line":"                arch\u003dplatform.machine(),"},{"line_number":121,"context_line":"                *args, **kwargs):"},{"line_number":122,"context_line":"        \"\"\"Build a Connector object based upon protocol and architecture.\"\"\""},{"line_number":123,"context_line":"        LOG.debug(\"Factory for %s on %s\", protocol, arch)"},{"line_number":124,"context_line":"        protocol \u003d protocol.upper()"},{"line_number":125,"context_line":"        if protocol \u003d\u003d \"ISCSI\":"},{"line_number":126,"context_line":"            return ISCSIConnector(root_helper\u003droot_helper,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_d19a0161","line":123,"in_reply_to":"9a80dd14_b1b02dfe","updated":"2015-03-19 20:43:40.000000000","message":"Which part? This one isn\u0027t being translated.\n\nDo you mean the comma? That isn\u0027t related to translation. That is actually the correct recommended usage of the logger. It delays the string formatting until and if the log level is actually set to log debug messages.","commit_id":"59dbfc6951b7563f7c262d2419327e707aae8fc6"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"ca2a4ceb653a5f4b2696647cd564b62087c92397","unresolved":false,"context_lines":[{"line_number":120,"context_line":"                arch\u003dplatform.machine(),"},{"line_number":121,"context_line":"                *args, **kwargs):"},{"line_number":122,"context_line":"        \"\"\"Build a Connector object based upon protocol and architecture.\"\"\""},{"line_number":123,"context_line":"        LOG.debug(\"Factory for %s on %s\", protocol, arch)"},{"line_number":124,"context_line":"        protocol \u003d protocol.upper()"},{"line_number":125,"context_line":"        if protocol \u003d\u003d \"ISCSI\":"},{"line_number":126,"context_line":"            return ISCSIConnector(root_helper\u003droot_helper,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_c20dd190","line":123,"in_reply_to":"9a80dd14_d19a0161","updated":"2015-03-19 22:02:47.000000000","message":"ok yah it was about the comma.","commit_id":"59dbfc6951b7563f7c262d2419327e707aae8fc6"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"03c14886c7d632a55d194380c3af3498c2c9eac1","unresolved":false,"context_lines":[{"line_number":628,"context_line":"                                   run_as_root\u003dTrue,"},{"line_number":629,"context_line":"                                   root_helper\u003dself._root_helper,"},{"line_number":630,"context_line":"                                   check_exit_code\u003dcheck_exit_code)"},{"line_number":631,"context_line":"        LOG.debug(\"iscsiadm %s: stdout\u003d%s stderr\u003d%s\","},{"line_number":632,"context_line":"                  iscsi_command, out, err)"},{"line_number":633,"context_line":"        return (out, err)"},{"line_number":634,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_3116fdf2","line":631,"updated":"2015-03-19 20:39:09.000000000","message":"shouldn\u0027t these be converted to %(cmd)s format?","commit_id":"59dbfc6951b7563f7c262d2419327e707aae8fc6"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"73ba07a94580842a73ef495979a9c5a5f7502637","unresolved":false,"context_lines":[{"line_number":628,"context_line":"                                   run_as_root\u003dTrue,"},{"line_number":629,"context_line":"                                   root_helper\u003dself._root_helper,"},{"line_number":630,"context_line":"                                   check_exit_code\u003dcheck_exit_code)"},{"line_number":631,"context_line":"        LOG.debug(\"iscsiadm %s: stdout\u003d%s stderr\u003d%s\","},{"line_number":632,"context_line":"                  iscsi_command, out, err)"},{"line_number":633,"context_line":"        return (out, err)"},{"line_number":634,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_b1acad89","line":631,"in_reply_to":"9a80dd14_3116fdf2","updated":"2015-03-19 20:43:40.000000000","message":"You are right, anything more than a single variable should really be named. Good catch.","commit_id":"59dbfc6951b7563f7c262d2419327e707aae8fc6"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"03c14886c7d632a55d194380c3af3498c2c9eac1","unresolved":false,"context_lines":[{"line_number":639,"context_line":"                                   run_as_root\u003dTrue,"},{"line_number":640,"context_line":"                                   root_helper\u003dself._root_helper,"},{"line_number":641,"context_line":"                                   check_exit_code\u003dcheck_exit_code)"},{"line_number":642,"context_line":"        LOG.debug(\"multipath %s: stdout\u003d%s stderr\u003d%s\","},{"line_number":643,"context_line":"                  (multipath_command, out, err))"},{"line_number":644,"context_line":"        return (out, err)"},{"line_number":645,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_71d31538","line":642,"updated":"2015-03-19 20:39:09.000000000","message":"same","commit_id":"59dbfc6951b7563f7c262d2419327e707aae8fc6"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"73ba07a94580842a73ef495979a9c5a5f7502637","unresolved":false,"context_lines":[{"line_number":639,"context_line":"                                   run_as_root\u003dTrue,"},{"line_number":640,"context_line":"                                   root_helper\u003dself._root_helper,"},{"line_number":641,"context_line":"                                   check_exit_code\u003dcheck_exit_code)"},{"line_number":642,"context_line":"        LOG.debug(\"multipath %s: stdout\u003d%s stderr\u003d%s\","},{"line_number":643,"context_line":"                  (multipath_command, out, err))"},{"line_number":644,"context_line":"        return (out, err)"},{"line_number":645,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_31c0bd2a","line":642,"in_reply_to":"9a80dd14_71d31538","updated":"2015-03-19 20:43:40.000000000","message":"Will fix.","commit_id":"59dbfc6951b7563f7c262d2419327e707aae8fc6"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"75411f89ec7b6c6ea078648f97df0ca6e4f758c4","unresolved":false,"context_lines":[{"line_number":120,"context_line":"                arch\u003dplatform.machine(),"},{"line_number":121,"context_line":"                *args, **kwargs):"},{"line_number":122,"context_line":"        \"\"\"Build a Connector object based upon protocol and architecture.\"\"\""},{"line_number":123,"context_line":"        LOG.debug(\"Factory for %s on %s\", protocol, arch)"},{"line_number":124,"context_line":"        protocol \u003d protocol.upper()"},{"line_number":125,"context_line":"        if protocol \u003d\u003d \"ISCSI\":"},{"line_number":126,"context_line":"            return ISCSIConnector(root_helper\u003droot_helper,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_ff245a61","line":123,"updated":"2015-03-25 14:55:49.000000000","message":"You have multiple variables here, so you should use dict syntax (http://docs.openstack.org/developer/oslo.i18n/guidelines.html#adding-variables-to-translated-messages).","commit_id":"b5c23744584135b13a3975fa1bfc28367e432e5f"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"75411f89ec7b6c6ea078648f97df0ca6e4f758c4","unresolved":false,"context_lines":[{"line_number":448,"context_line":"                                   *iscsi_command, run_as_root\u003dTrue,"},{"line_number":449,"context_line":"                                   root_helper\u003dself._root_helper,"},{"line_number":450,"context_line":"                                   check_exit_code\u003dcheck_exit_code)"},{"line_number":451,"context_line":"        LOG.debug(\"iscsiadm %s: stdout\u003d%s stderr\u003d%s\","},{"line_number":452,"context_line":"                  iscsi_command, out, err)"},{"line_number":453,"context_line":"        return (out, err)"},{"line_number":454,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_bfa3c2b0","line":451,"updated":"2015-03-25 14:55:49.000000000","message":"Ditto.","commit_id":"b5c23744584135b13a3975fa1bfc28367e432e5f"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"75411f89ec7b6c6ea078648f97df0ca6e4f758c4","unresolved":false,"context_lines":[{"line_number":1242,"context_line":"                LOG.debug(\"Line is %s.\", line)"},{"line_number":1243,"context_line":"                if line.find(\u0027\u003d\u0027) !\u003d -1:"},{"line_number":1244,"context_line":"                    key, val \u003d line.split(\u0027\u003d\u0027, 1)"},{"line_number":1245,"context_line":"                    LOG.debug(\"%s \u003d %s\", key, val)"},{"line_number":1246,"context_line":"                    if key in [\u0027ret_code\u0027, \u0027ret_desc\u0027, \u0027dev_addr\u0027]:"},{"line_number":1247,"context_line":"                        analyse_result[key] \u003d val"},{"line_number":1248,"context_line":"            return analyse_result"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_bfdf420c","line":1245,"updated":"2015-03-25 14:55:49.000000000","message":"Ditto.","commit_id":"b5c23744584135b13a3975fa1bfc28367e432e5f"}],"os_brick/initiator/linuxscsi.py":[{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"75411f89ec7b6c6ea078648f97df0ca6e4f758c4","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            # flush any outstanding IO first"},{"line_number":63,"context_line":"            self.flush_device_io(device)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"            LOG.debug(\"Remove SCSI device(%s) with %s\", device, path)"},{"line_number":66,"context_line":"            self.echo_scsi_command(path, \"1\")"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def get_device_info(self, device):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_9fed26ba","line":65,"updated":"2015-03-25 14:55:49.000000000","message":"Ditto.","commit_id":"b5c23744584135b13a3975fa1bfc28367e432e5f"}]}
