)]}'
{"oslo_policy/policy.py":[{"author":{"_account_id":17862,"name":"Kseniya Tychkova","email":"kseniya.tychkova@gmail.com","username":"ktychkova"},"change_message_id":"c00b6daf31ce135ec73b02a78542462ea295d1fc","unresolved":false,"context_lines":[{"line_number":499,"context_line":"                try:"},{"line_number":500,"context_line":"                    self.policy_path \u003d self._get_policy_path(self.policy_file)"},{"line_number":501,"context_line":"                except cfg.ConfigFilesNotFoundError:"},{"line_number":502,"context_line":"                    pass"},{"line_number":503,"context_line":""},{"line_number":504,"context_line":"            if self.policy_path:"},{"line_number":505,"context_line":"                self._load_policy_file(self.policy_path, force_reload,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_dd720a11","line":502,"updated":"2016-07-14 13:44:15.000000000","message":"Please add a log message here.","commit_id":"4e7e2ce3033af3fea6451b44b69b87f81d17a3b0"},{"author":{"_account_id":5441,"name":"Andrew Laski","email":"andrew@lascii.com","username":"alaski"},"change_message_id":"1d2d4f965b9af90ac9ef87999e9468e42975d55b","unresolved":false,"context_lines":[{"line_number":499,"context_line":"                try:"},{"line_number":500,"context_line":"                    self.policy_path \u003d self._get_policy_path(self.policy_file)"},{"line_number":501,"context_line":"                except cfg.ConfigFilesNotFoundError:"},{"line_number":502,"context_line":"                    pass"},{"line_number":503,"context_line":""},{"line_number":504,"context_line":"            if self.policy_path:"},{"line_number":505,"context_line":"                self._load_policy_file(self.policy_path, force_reload,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_e4977238","line":502,"in_reply_to":"1aa78d24_812e60f8","updated":"2016-07-14 14:17:59.000000000","message":"Actually, I have some concerns about logging here. This method is called every time a policy rule is checked so it could spam the logs to have something here.\n\nI think what I\u0027ll do is log on the first time this event occurs and then store something on the class to suppress additional logging.","commit_id":"4e7e2ce3033af3fea6451b44b69b87f81d17a3b0"},{"author":{"_account_id":5441,"name":"Andrew Laski","email":"andrew@lascii.com","username":"alaski"},"change_message_id":"40777bc5295e98c571b9d2c062413fb16d1370fa","unresolved":false,"context_lines":[{"line_number":499,"context_line":"                try:"},{"line_number":500,"context_line":"                    self.policy_path \u003d self._get_policy_path(self.policy_file)"},{"line_number":501,"context_line":"                except cfg.ConfigFilesNotFoundError:"},{"line_number":502,"context_line":"                    pass"},{"line_number":503,"context_line":""},{"line_number":504,"context_line":"            if self.policy_path:"},{"line_number":505,"context_line":"                self._load_policy_file(self.policy_path, force_reload,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_d60ae478","line":502,"in_reply_to":"1aa78d24_8792f049","updated":"2016-07-14 15:51:12.000000000","message":"I have the same concern about knowing when no file is okay and when it is not. All I can think of at the moment would be to have a configuration option which specifies that. Perhaps that can be a future improvement if there are issues with not being able to specify that.","commit_id":"4e7e2ce3033af3fea6451b44b69b87f81d17a3b0"},{"author":{"_account_id":5441,"name":"Andrew Laski","email":"andrew@lascii.com","username":"alaski"},"change_message_id":"77bf468a0060075f31b939419d04ae62b694ee90","unresolved":false,"context_lines":[{"line_number":499,"context_line":"                try:"},{"line_number":500,"context_line":"                    self.policy_path \u003d self._get_policy_path(self.policy_file)"},{"line_number":501,"context_line":"                except cfg.ConfigFilesNotFoundError:"},{"line_number":502,"context_line":"                    pass"},{"line_number":503,"context_line":""},{"line_number":504,"context_line":"            if self.policy_path:"},{"line_number":505,"context_line":"                self._load_policy_file(self.policy_path, force_reload,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_812e60f8","line":502,"in_reply_to":"1aa78d24_dd720a11","updated":"2016-07-14 14:03:30.000000000","message":"Will do.","commit_id":"4e7e2ce3033af3fea6451b44b69b87f81d17a3b0"},{"author":{"_account_id":17862,"name":"Kseniya Tychkova","email":"kseniya.tychkova@gmail.com","username":"ktychkova"},"change_message_id":"d52fa4630248e3c996561cd914782d50347ece5a","unresolved":false,"context_lines":[{"line_number":499,"context_line":"                try:"},{"line_number":500,"context_line":"                    self.policy_path \u003d self._get_policy_path(self.policy_file)"},{"line_number":501,"context_line":"                except cfg.ConfigFilesNotFoundError:"},{"line_number":502,"context_line":"                    pass"},{"line_number":503,"context_line":""},{"line_number":504,"context_line":"            if self.policy_path:"},{"line_number":505,"context_line":"                self._load_policy_file(self.policy_path, force_reload,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_8792f049","line":502,"in_reply_to":"1aa78d24_e4977238","updated":"2016-07-14 14:32:16.000000000","message":"In this case it is not clear for me why not to store in class some parameter that we are in \"no file\" mode.\nActually, no log message is ok. \nI worry that it is not clear when no file is ok and when is not. \nBut your solution is very simple and I\u0027m not sure that to implement here something big is better. \nI suggest to add a \"debug\" log message here.","commit_id":"4e7e2ce3033af3fea6451b44b69b87f81d17a3b0"}]}
