diff options
Diffstat (limited to 'monitor/josef_leveldb.py')
| -rwxr-xr-x | monitor/josef_leveldb.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/monitor/josef_leveldb.py b/monitor/josef_leveldb.py index d10514e..7ad43f3 100755 --- a/monitor/josef_leveldb.py +++ b/monitor/josef_leveldb.py @@ -62,7 +62,6 @@ def db_add_domain_2(db_dir, key_in, val_in, db_in=None): if db_in == None: val = str(hash(val_in)) cert_db = db_open(db_dir + "certificates") - print "Storing cert " + val_in + " with key " + val cert_db.Put(val, val_in) key_list = key_in.split('/')[0].split(',')[0].split('.') @@ -77,8 +76,6 @@ def db_add_domain_2(db_dir, key_in, val_in, db_in=None): key = key_in val = val_in - # print "key: ", key, " val: ", val - # hash_val = hash(val) try: tmp = db.Get(key) tmpl = tmp.split(SEP) @@ -88,12 +85,7 @@ def db_add_domain_2(db_dir, key_in, val_in, db_in=None): tmpl.append(val) db.Put(key,SEP.join(tmpl)) - # cert_db = db_open(db_dir + "certificates") - # cert_db.Put(str(hash_val), val) except KeyError: - # cert_db = db_open(db_dir + "certificates") - # cert_db.Put(str(hash_val), val) - db.Put(key,SEP.join([val])) new_key = key.split('.',1)[-1] if new_key != key: |
