)]}'
{"tempest/common/rest_client.py":[{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"94c137e8c9ef1af5b11d13b1a4bd811731d1e566","unresolved":false,"context_lines":[{"line_number":9,"context_line":""},{"line_number":10,"context_line":"    def __init__(self, config, user, key, auth_url, service, tenant_name\u003dNone):"},{"line_number":11,"context_line":"        logging.basicConfig(stream\u003dsys.stderr)"},{"line_number":12,"context_line":"        logging.getLogger(\"tempest.common.RestClient\").setLevel(logging.ERROR)"},{"line_number":13,"context_line":"        self.config \u003d config"},{"line_number":14,"context_line":"        if self.config.env.authentication \u003d\u003d \u0027keystone_v2\u0027:"},{"line_number":15,"context_line":"            self.token, self.base_url \u003d self.keystone_v2_auth(user,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAEH%2F%2F%2BJo%3D","line":12,"updated":"2012-01-25 18:04:14.000000000","message":"I think it would be easier to just do:\n\n self.log \u003d logging.getLogger(__name__)\n self.log.setLevel(logging.ERROR)\n\nAnd then below there\u0027s no need to call getLogger again... can just refer to self.log?","commit_id":"6a78a5894000fd3807e44710f44a0381f5bd598e"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"94c137e8c9ef1af5b11d13b1a4bd811731d1e566","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    def _log(self, req_url, body, resp, resp_body):"},{"line_number":105,"context_line":"        log \u003d logging.getLogger(\"tempest.common.RestClient\")"},{"line_number":106,"context_line":"        log.error(\u0027Request\u0027)"},{"line_number":107,"context_line":"        log.error(\u0027URL: \u0027 + req_url)"},{"line_number":108,"context_line":"        log.error(\u0027Body: \u0027 + str(body))"},{"line_number":109,"context_line":"        log.error(\u0027Response\u0027)"},{"line_number":110,"context_line":"        log.error(\u0027Header: \u0027 + str(resp))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAEH%2F%2F%2BJY%3D","line":107,"updated":"2012-01-25 18:04:14.000000000","message":"Maybe put Request-URL and Request-Body and remove the single Request log line? That way, it\u0027s easier to grep for the request body and/or URL. Same for Response below..","commit_id":"6a78a5894000fd3807e44710f44a0381f5bd598e"}]}
