)]}'
{"horizon/messages.py":[{"author":{"_account_id":2455,"name":"Tihomir Trifonov","email":"t.trifonov@gmail.com","username":"ttrifonov"},"change_message_id":"5c48853d30f3046dae473d80a199797607b23a48","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    \"\"\"Attempts to add a message to the request using the \u0027messages\u0027 app.\"\"\""},{"line_number":46,"context_line":"    if debug_log:"},{"line_number":47,"context_line":"        with translation.override(\u0027en\u0027):"},{"line_number":48,"context_line":"            LOG.debug(force_text(message))"},{"line_number":49,"context_line":"    if not horizon_message_already_queued(request, message):"},{"line_number":50,"context_line":"        if request.is_ajax():"},{"line_number":51,"context_line":"            tag \u003d constants.DEFAULT_TAGS[level]"}],"source_content_type":"text/x-python","patch_set":2,"id":"dac4157f_fb5779c8","line":48,"updated":"2015-04-20 09:32:13.000000000","message":"Writing DEBUG here doesn\u0027t make much sense for me. If you implement the filters as described in my other comment, the requested \u0027level\u0027 can be included into the message, to make it much more informational what is been returned to client.\nBut do we really need to log user messages here?","commit_id":"8c3a38bfb9c896872f612d30dc069dd80716646c"}],"horizon/utils/trans.py":[{"author":{"_account_id":2455,"name":"Tihomir Trifonov","email":"t.trifonov@gmail.com","username":"ttrifonov"},"change_message_id":"5c48853d30f3046dae473d80a199797607b23a48","unresolved":false,"context_lines":[{"line_number":16,"context_line":"from django.utils import translation"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"def string_to_en(string):"},{"line_number":20,"context_line":"    with translation.override(\u0027en\u0027):"},{"line_number":21,"context_line":"        return encoding.force_text(string)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dac4157f_f010b8aa","line":19,"updated":"2015-04-20 09:32:13.000000000","message":"Does it make sense to use logging.Filter instead of calling string_to_en() multiple times? Filters can be applied on Handlers, which can be useful here, I guess.","commit_id":"8c3a38bfb9c896872f612d30dc069dd80716646c"}],"openstack_dashboard/dashboards/project/data_processing/utils/workflow_helpers.py":[{"author":{"_account_id":2455,"name":"Tihomir Trifonov","email":"t.trifonov@gmail.com","username":"ttrifonov"},"change_message_id":"5c48853d30f3046dae473d80a199797607b23a48","unresolved":false,"context_lines":[{"line_number":148,"context_line":"            security_groups.append(network.security_group_get("},{"line_number":149,"context_line":"                request, group))"},{"line_number":150,"context_line":"        except Exception:"},{"line_number":151,"context_line":"            LOG.info(\u0027Unable to retrieve security group %(group)s.\u0027,"},{"line_number":152,"context_line":"                     {\u0027group\u0027: group})"},{"line_number":153,"context_line":"            security_groups.append({\u0027name\u0027: group})"},{"line_number":154,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"dac4157f_5bc54559","line":151,"updated":"2015-04-20 09:32:13.000000000","message":"Using translatable log messages can be handsome actually. You can use the system locale(and not hard-coded \u0027en\u0027) in the global function `string_to_local()` (or using logging.Filter) so that non-English speaking operators to see log messages in their preferred language.","commit_id":"8c3a38bfb9c896872f612d30dc069dd80716646c"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"ec67136414c08228c3c57dc31dace12d156d8560","unresolved":false,"context_lines":[{"line_number":148,"context_line":"            security_groups.append(network.security_group_get("},{"line_number":149,"context_line":"                request, group))"},{"line_number":150,"context_line":"        except Exception:"},{"line_number":151,"context_line":"            LOG.info(\u0027Unable to retrieve security group %(group)s.\u0027,"},{"line_number":152,"context_line":"                     {\u0027group\u0027: group})"},{"line_number":153,"context_line":"            security_groups.append({\u0027name\u0027: group})"},{"line_number":154,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"dac4157f_5ecbbc1e","line":151,"in_reply_to":"dac4157f_5bc54559","updated":"2015-04-22 12:11:28.000000000","message":"They would be great if there was a unique identifier for the error, however in my opinion without something like a error code, translated/localised error messages will just make it difficult for an operator to search for the error online and utilise the wider community for debugging.","commit_id":"8c3a38bfb9c896872f612d30dc069dd80716646c"}]}
