)]}'
{"nova/log.py":[{"author":{"_account_id":34,"name":"Todd Willey","email":"todd@ansolabs.com","username":"xtoddx"},"change_message_id":"0c13195fb1529c5bd1b566a72784bd326c94914e","unresolved":false,"context_lines":[{"line_number":275,"context_line":"            self.removeHandler(self.streamlog)"},{"line_number":276,"context_line":"            self.streamlog \u003d None"},{"line_number":277,"context_line":"        if FLAGS.use_stderr:"},{"line_number":278,"context_line":"            self.streamlog \u003d StreamHandler()"},{"line_number":279,"context_line":"            self.addHandler(self.streamlog)"},{"line_number":280,"context_line":"        if FLAGS.publish_errors:"},{"line_number":281,"context_line":"            self.addHandler(PublishErrorsHandler(ERROR))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAACn%2F%2F9CM%3D","line":278,"updated":"2011-11-21 22:30:09.000000000","message":"How about this, so as to not remove it just to create it again?\n\nif FLAGS.use_stderr and not self.streamlog:\n    # create and add\nelif self.streamlog:\n    # remove","commit_id":"854b1f5b762320fe49eaa61c874dc65a56f63a17"},{"author":{"_account_id":271,"name":"Ewan Mellor","email":"ewan.mellor@citrix.com","username":"ewanmellor"},"change_message_id":"5565e71ac877d314c8e27fc9531e024ef0783190","unresolved":false,"context_lines":[{"line_number":275,"context_line":"            self.removeHandler(self.streamlog)"},{"line_number":276,"context_line":"            self.streamlog \u003d None"},{"line_number":277,"context_line":"        if FLAGS.use_stderr:"},{"line_number":278,"context_line":"            self.streamlog \u003d StreamHandler()"},{"line_number":279,"context_line":"            self.addHandler(self.streamlog)"},{"line_number":280,"context_line":"        if FLAGS.publish_errors:"},{"line_number":281,"context_line":"            self.addHandler(PublishErrorsHandler(ERROR))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAACn%2F%2F8ak%3D","line":278,"in_reply_to":"AAAACn%2F%2F9CM%3D","updated":"2011-11-27 05:02:19.000000000","message":"Your code doesn\u0027t work in the case where both FLAGS.use_stderr and self.streamlog are set.  In that case, the streamlog will be removed, which is not what we want.\n\nThis case actually happens every time, because setup_from_flags is called twice at start of day.  (That\u0027s a whole other can of worms.)","commit_id":"854b1f5b762320fe49eaa61c874dc65a56f63a17"}]}
