)]}'
{"specs/pike/improving-logging-debugging.rst":[{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"7fd810316bb37a70c28bc93232e986e7a04f2f6c","unresolved":false,"context_lines":[{"line_number":56,"context_line":"the goals in the easiest way possible."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"Message Locations"},{"line_number":59,"context_line":"-----------------"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"The location of a message (filename and line number) can be exposed"},{"line_number":62,"context_line":"today in any version of OpenStack by adding the relevant fields to the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"5ff73747_e910caaa","line":59,"updated":"2017-04-27 15:59:28.000000000","message":"A message location doesn\u0027t count as an identifier does it? From release to release the code from which an error may be logged can move from module to module. If the identifiers are to be used in long-lived documentation...","commit_id":"11d836d07a0803006641cd74fbcf9e6e38f1afb6"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"fa9bbdd070fbaa251470cabd96bacad49eb9e1c4","unresolved":false,"context_lines":[{"line_number":56,"context_line":"the goals in the easiest way possible."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"Message Locations"},{"line_number":59,"context_line":"-----------------"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"The location of a message (filename and line number) can be exposed"},{"line_number":62,"context_line":"today in any version of OpenStack by adding the relevant fields to the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"5ff73747_46f564ec","line":59,"in_reply_to":"5ff73747_e910caaa","updated":"2017-04-27 19:16:56.000000000","message":"You\u0027re right, of course. This proposal trades off the ability to have docs that refer to messages by ID with not having to maintain those IDs, while still trying to solve the \"where is this message coming from\" question that seemed to be a key part of debugging, based on previous discussions.","commit_id":"11d836d07a0803006641cd74fbcf9e6e38f1afb6"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"7fd810316bb37a70c28bc93232e986e7a04f2f6c","unresolved":false,"context_lines":[{"line_number":105,"context_line":"change to update the default in oslo.log."},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"Error Identifiers"},{"line_number":108,"context_line":"-----------------"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"Most errors in Python programs are associated with an instance of a"},{"line_number":111,"context_line":"class derived from Exception. These classes have message text,"}],"source_content_type":"text/x-rst","patch_set":1,"id":"5ff73747_e9d32ad4","line":108,"updated":"2017-04-27 15:59:28.000000000","message":"I think this has been mentioned elsewhere, but in case it\u0027s not: there are plenty of log messages that are outside the context of an exception. Is the idea here that we would (over time) change that?","commit_id":"11d836d07a0803006641cd74fbcf9e6e38f1afb6"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"fa9bbdd070fbaa251470cabd96bacad49eb9e1c4","unresolved":false,"context_lines":[{"line_number":105,"context_line":"change to update the default in oslo.log."},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"Error Identifiers"},{"line_number":108,"context_line":"-----------------"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"Most errors in Python programs are associated with an instance of a"},{"line_number":111,"context_line":"class derived from Exception. These classes have message text,"}],"source_content_type":"text/x-rst","patch_set":1,"id":"5ff73747_06499c2f","line":108,"in_reply_to":"5ff73747_e9d32ad4","updated":"2017-04-27 19:16:56.000000000","message":"We might, for key cases. Sean suggested that maintaining exception classes may actually be easier for reviewers to manage, even if they\u0027re trivial, because we already have a pattern of lots of unique exception types. Adding a few more, as needed, would be less work than adding a unique ID to every log message, or even a significant number of them.","commit_id":"11d836d07a0803006641cd74fbcf9e6e38f1afb6"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"0b6f3ecb16d71fa633a98002eae15c0b07979e49","unresolved":false,"context_lines":[{"line_number":186,"context_line":"  initiatives in OpenStack"},{"line_number":187,"context_line":"  \u003chttps://doughellmann.com/blog/2017/04/20/lessons-learned-from-working-on-large-scale-cross-project-initiatives-in-openstack/\u003e`__"},{"line_number":188,"context_line":"* `Boston Forum Logging Working Group Work session"},{"line_number":189,"context_line":"  \u003chttps://www.openstack.org/summit/boston-2017/summit-schedule/events/18507/logging-working-group-working-session\u003e`__"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"Implementation"},{"line_number":192,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":1,"id":"5ff73747_83b79ef5","line":189,"updated":"2017-05-01 14:19:49.000000000","message":"This list should also include the session on Tuesday. https://www.openstack.org/summit/boston-2017/summit-schedule/events/18778/enhancing-log-message-headers-for-rt-debug-and-traceability","commit_id":"11d836d07a0803006641cd74fbcf9e6e38f1afb6"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"f2f4d8fe0b526e2b5ed149a74c2047e5ec22e1b8","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"       LOG \u003d logging.getLogger(__name__)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    causes the logger to be called ``nova.api.auth``."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"2. The ``%(filename)s`` field inserts the last part of the full file"},{"line_number":79,"context_line":"   name into the log line. For example, nova/api/auth.py produces"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_46e508dc","line":76,"range":{"start_line":76,"start_character":3,"end_line":76,"end_character":4},"updated":"2017-05-02 13:26:25.000000000","message":"supernit: remove one space here to make this render as part of the text paragraph rather than the code block.","commit_id":"f9e05514cf4c2db75614b37b0f96ec3a9fa3c57f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"f2f4d8fe0b526e2b5ed149a74c2047e5ec22e1b8","unresolved":false,"context_lines":[{"line_number":156,"context_line":"We can actually do this no matter the log level, so that if a log"},{"line_number":157,"context_line":"message is emitted in the context of handling an exception, that error"},{"line_number":158,"context_line":"is included in the output even if the level for the log message is"},{"line_number":159,"context_line":"INFO or DEBUG."},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"See https://review.openstack.org/#/c/459424/ for an example"},{"line_number":162,"context_line":"change. The other log formatters provided by oslo.log will also need"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_31d478bd","line":159,"updated":"2017-05-02 13:26:25.000000000","message":"This is redundant for exceptions, and I\u0027m not real comfortable with it for general log messages.  Not every exception context is relevant.  And having this turned on by default is going to be confusing for the developer, who\u0027s used to explicitly calling out exception info if they think it\u0027s relevant.","commit_id":"f9e05514cf4c2db75614b37b0f96ec3a9fa3c57f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"36dc3f572fa012c6c313164b936d167a22f15ed7","unresolved":false,"context_lines":[{"line_number":156,"context_line":"We can actually do this no matter the log level, so that if a log"},{"line_number":157,"context_line":"message is emitted in the context of handling an exception, that error"},{"line_number":158,"context_line":"is included in the output even if the level for the log message is"},{"line_number":159,"context_line":"INFO or DEBUG."},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"See https://review.openstack.org/#/c/459424/ for an example"},{"line_number":162,"context_line":"change. The other log formatters provided by oslo.log will also need"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f044301_c0d0b7cc","line":159,"in_reply_to":"3f044301_e03293a7","updated":"2017-05-04 21:31:52.000000000","message":"Fair enough.  I think the overall good being done here outweighs the handful of remaining cases that\u0027ll wind up being confusing to the reader of the log.","commit_id":"f9e05514cf4c2db75614b37b0f96ec3a9fa3c57f"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"94d1f0a0faf350619eb062e00c4d656dad8defcb","unresolved":false,"context_lines":[{"line_number":156,"context_line":"We can actually do this no matter the log level, so that if a log"},{"line_number":157,"context_line":"message is emitted in the context of handling an exception, that error"},{"line_number":158,"context_line":"is included in the output even if the level for the log message is"},{"line_number":159,"context_line":"INFO or DEBUG."},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"See https://review.openstack.org/#/c/459424/ for an example"},{"line_number":162,"context_line":"change. The other log formatters provided by oslo.log will also need"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f044301_e03293a7","line":159,"in_reply_to":"5ff73747_31d478bd","updated":"2017-05-04 21:16:01.000000000","message":"In most of the cases I was able to find, the log message and the exception text were different. That\u0027s even true for our own custom exceptions.\n\nI agree that not every exception is relevant to the end user. The patch series now includes a patch to ignore some of python\u0027s built in exception types by default. I think it makes sense to provide a way to disable exception printing for a given logging, call, too. I\u0027ll see if I can work out a convenient way to do that with an explicit argument to the logging call.","commit_id":"f9e05514cf4c2db75614b37b0f96ec3a9fa3c57f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"f2f4d8fe0b526e2b5ed149a74c2047e5ec22e1b8","unresolved":false,"context_lines":[{"line_number":193,"context_line":"Alternatives"},{"line_number":194,"context_line":"------------"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"1. The first public specification related to this topic was posted in glance-specs"},{"line_number":197,"context_line":"   under the title \"Glance Error Codes\": https://review.openstack.org/#/c/127482"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"   The Glance spec was eventually moved to the cross-project specs repo with"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_71f32075","line":196,"range":{"start_line":196,"start_character":77,"end_line":196,"end_character":82},"updated":"2017-05-02 13:26:25.000000000","message":"line length","commit_id":"f9e05514cf4c2db75614b37b0f96ec3a9fa3c57f"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"65e4136f9e3c6a55e9beb489f3185217f635a97b","unresolved":false,"context_lines":[{"line_number":211,"context_line":"   to add the location and error summary information, without"},{"line_number":212,"context_line":"   automatically inserting it. This would likely increase the number"},{"line_number":213,"context_line":"   of operators running with a non-default configuration, something we"},{"line_number":214,"context_line":"   have tried to avoid in the past."},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"References"},{"line_number":217,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f044301_751be61a","line":214,"updated":"2017-05-04 19:05:10.000000000","message":"good point","commit_id":"f9e05514cf4c2db75614b37b0f96ec3a9fa3c57f"}]}
