Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import base64 | 5 import base64 |
| 6 import json | 6 import json |
| 7 import logging | 7 import logging |
| 8 | 8 |
| 9 from common import constants | 9 from common import constants |
| 10 from common.base_handler import BaseHandler | 10 from common.base_handler import BaseHandler |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 102 | 102 |
| 103 logging.info('Crash data is %s', json.dumps(crash_data)) | 103 logging.info('Crash data is %s', json.dumps(crash_data)) |
| 104 | 104 |
| 105 crash_pipeline.ScheduleNewAnalysisForCrash( | 105 crash_pipeline.ScheduleNewAnalysisForCrash( |
| 106 crash_data['crash_identifiers'], | 106 crash_data['crash_identifiers'], |
| 107 crash_data['chrome_version'], | 107 crash_data['chrome_version'], |
| 108 crash_data['signature'], | 108 crash_data['signature'], |
| 109 crash_data['client_id'], | 109 crash_data['client_id'], |
| 110 crash_data['platform'], | 110 crash_data['platform'], |
| 111 crash_data['stack_trace'], | 111 crash_data['stack_trace'], |
| 112 crash_data['customized_data'], | 112 crash_data['customized_data']['channel'], |
|
Sharu Jiang
2016/10/12 17:46:29
? This is not correct, the 'historical_metadata' g
wrengr
2016/10/12 21:14:51
ScheduleNewAnalysisForCrash (the version in this C
Sharu Jiang
2016/10/12 22:35:03
The function is to schedule analysis for any clien
wrengr
2016/10/18 23:13:54
As mentioned elsewhere, I mislike having this 'cus
| |
| 113 queue_name=constants.CRASH_ANALYSIS_QUEUE[crash_data['client_id']]) | 113 queue_name=constants.CRASH_ANALYSIS_QUEUE[crash_data['client_id']]) |
| 114 except (KeyError, ValueError): # pragma: no cover. | 114 except (KeyError, ValueError): # pragma: no cover. |
| 115 # TODO: save exception in datastore and create a page to show them. | 115 # TODO: save exception in datastore and create a page to show them. |
| 116 logging.exception('Failed to process crash message') | 116 logging.exception('Failed to process crash message') |
| 117 logging.info(self.request.body) | 117 logging.info(self.request.body) |
| OLD | NEW |