)]}'
{"oslo/utils/netutils.py":[{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"ab09eb5242a93b741c95b0b40d8d785072da4a0b","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                     \u0027using 127.0.0.1\u0027),"},{"line_number":150,"context_line":"                 interface)"},{"line_number":151,"context_line":"    except Exception as e:"},{"line_number":152,"context_line":"        LOG.info(_LI(\u0027Could not determine IPv4 address for \u0027"},{"line_number":153,"context_line":"                     \u0027interface %(interface)s: %(error)s\u0027),"},{"line_number":154,"context_line":"                 {\u0027interface\u0027: interface, \u0027error\u0027: e})"},{"line_number":155,"context_line":"    return LOCALHOST"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_c3d51a44","line":152,"updated":"2014-12-02 14:19:03.000000000","message":"What about using LOG.exception?\n\nCould be useful to have the traceback when we\u0027ll get bug report about that.","commit_id":"edfc2c75fb681be4a9907f4ace49448f06cd4eab"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"df290ca3e7b4b4442c5bb8add7cb35c6f2b2db5d","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                     \u0027using 127.0.0.1\u0027),"},{"line_number":150,"context_line":"                 interface)"},{"line_number":151,"context_line":"    except Exception as e:"},{"line_number":152,"context_line":"        LOG.info(_LI(\u0027Could not determine IPv4 address for \u0027"},{"line_number":153,"context_line":"                     \u0027interface %(interface)s: %(error)s\u0027),"},{"line_number":154,"context_line":"                 {\u0027interface\u0027: interface, \u0027error\u0027: e})"},{"line_number":155,"context_line":"    return LOCALHOST"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_ea8439b2","line":152,"in_reply_to":"5a890539_c3d51a44","updated":"2014-12-04 18:27:44.000000000","message":"I agree, but I don\u0027t think we should log this at error level.  In fact, I\u0027m not sure we should log a traceback for this at anything above debug level since it could happen in normal usage (the fallback to localhost is an acceptable outcome for this method).  Since it would only be for debugging purposes, logging it at debug seems reasonable to me though.","commit_id":"edfc2c75fb681be4a9907f4ace49448f06cd4eab"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"4f721e1e84aded73c4623cad1219af62aba3ba29","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                     \u0027using 127.0.0.1\u0027),"},{"line_number":150,"context_line":"                 interface)"},{"line_number":151,"context_line":"    except Exception as e:"},{"line_number":152,"context_line":"        LOG.info(_LI(\u0027Could not determine IPv4 address for \u0027"},{"line_number":153,"context_line":"                     \u0027interface %(interface)s: %(error)s\u0027),"},{"line_number":154,"context_line":"                 {\u0027interface\u0027: interface, \u0027error\u0027: e})"},{"line_number":155,"context_line":"    return LOCALHOST"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_1069b88b","line":152,"in_reply_to":"5a890539_ea8439b2","updated":"2014-12-04 19:12:28.000000000","message":"Perhaps then doing something like.\n\n  LOG.info(\"message\", exc_info\u003d1)\n\nYou can still get the exception traceback without using LOG.exception ;)","commit_id":"edfc2c75fb681be4a9907f4ace49448f06cd4eab"}]}
