commit 10d6f145baff27a65bd4e87a9b4358374b1f17cf Author: Arturo Filastò art@fuffa.org Date: Thu Jun 19 15:40:18 2014 +0200
Also record the PID of the process that created or failed to create the report. --- ooni/reporter.py | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/ooni/reporter.py b/ooni/reporter.py index 9869837..60df7eb 100644 --- a/ooni/reporter.py +++ b/ooni/reporter.py @@ -447,6 +447,7 @@ class OONIBReportLog(object): def _not_created(self, report_file): with self.edit_log() as report: report[report_file] = { + 'pid': os.getpid(), 'created_at': datetime.now(), 'status': 'not-created', 'collector': None @@ -458,6 +459,7 @@ class OONIBReportLog(object): def _created(self, report_file, collector_address, report_id): with self.edit_log() as report: report[report_file] = { + 'pid': os.getpid(), 'created_at': datetime.now(), 'status': 'created', 'collector': collector_address, @@ -471,6 +473,7 @@ class OONIBReportLog(object): def _creation_failed(self, report_file, collector_address): with self.edit_log() as report: report[report_file] = { + 'pid': os.getpid(), 'created_at': datetime.now(), 'status': 'creation-failed', 'collector': collector_address
tor-commits@lists.torproject.org