summaryrefslogtreecommitdiff
path: root/monitor/josef_leveldb.py
diff options
context:
space:
mode:
authorJosef Gustafsson <josef.gson@gmail.com>2015-09-11 08:35:08 +0200
committerJosef Gustafsson <josef.gson@gmail.com>2015-09-11 08:35:08 +0200
commitd699b0b0571536120a5413c61c33cd359f32c413 (patch)
treeee19a412a6ec82f9b1e5630a5eea1b3df51da844 /monitor/josef_leveldb.py
parentbf204cbc28e89e79ff2f1e384cd4d1908c47ac1d (diff)
bugfix: check_domain handles faults
Diffstat (limited to 'monitor/josef_leveldb.py')
-rwxr-xr-xmonitor/josef_leveldb.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor/josef_leveldb.py b/monitor/josef_leveldb.py
index 74498c7..5c7fc8a 100755
--- a/monitor/josef_leveldb.py
+++ b/monitor/josef_leveldb.py
@@ -91,6 +91,8 @@ def db_add_certs(db, data):
if db is None:
print "ERROR: NO DATABASE SET!"
return
+
+ # batch = leveldb.WriteBatch()
for cert in data:
try:
db_add_domain_2(db, cert["subject"].split("CN=")[1], str(cert))
@@ -103,7 +105,7 @@ def db_add_certs(db, data):
pass
except IndexError:
pass
-
+ # db.Write(batch, sync = True)
def db_lookup_domain(db, domain):