summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--TODO1
-rw-r--r--collector/parse.py4
3 files changed, 5 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 3bec5fb..3be6893 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
*pyc
*~
tmp
-xml
+out
diff --git a/TODO b/TODO
index 4577299..1fb3005 100644
--- a/TODO
+++ b/TODO
@@ -2,6 +2,7 @@ collector
=========
- Stability testing / fuzzing (Valgrind (?))
- Add more logging messages
+- Use consistent logging
- Check file integrity (?)
- Use more telling variables
- Clean up code
diff --git a/collector/parse.py b/collector/parse.py
index 40efede..8a606a7 100644
--- a/collector/parse.py
+++ b/collector/parse.py
@@ -157,7 +157,9 @@ def create_xml(directory, bugid, bug_dict, nvd_dict):
intervals = interval.from_whiteboard(bug_dict['status_whiteboard'])
if intervals:
for item in intervals:
- item.to_xml(affectedroot) #TODO: print cve if whiteboard is empty
+ item.to_xml(affectedroot)
+ else:
+ log.error('-> ' + bug_dict['bug_id'])
else:
node = et.SubElement(bugroot, element)
node.text = xml_bug_dict[element]