diff options
| author | Josef Gustafsson <josef.gson@gmail.com> | 2015-09-11 16:11:40 +0200 |
|---|---|---|
| committer | Josef Gustafsson <josef.gson@gmail.com> | 2015-09-11 16:11:40 +0200 |
| commit | 8838d7ddee90eaed922ff6a0ecd3f922ef5e2b31 (patch) | |
| tree | 7a65d31301dd20eb4b9ba6b5f3c389dd3f3ab167 /monitor | |
| parent | a8a6e53a026bddb04948b2a9c52b70c4bc63c2c2 (diff) | |
cleaning
Diffstat (limited to 'monitor')
| -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: |
