summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosef Gustafsson <josef.gson@gmail.com>2015-10-09 09:51:00 +0200
committerJosef Gustafsson <josef.gson@gmail.com>2015-10-09 09:51:00 +0200
commit3e3e73f189c73dc2c0ebaca7f1dcb5b06d98c6c9 (patch)
tree76a2f8b61a8a74c05cc1ac7581b730a64634b074
parente8762a413c95a2cbab15f4d776cfdb9fed5b255d (diff)
testing...
-rwxr-xr-xmonitor/josef_leveldb.py2
-rwxr-xr-xmonitor/josef_reader.py11
2 files changed, 6 insertions, 7 deletions
diff --git a/monitor/josef_leveldb.py b/monitor/josef_leveldb.py
index 9e57e20..ef6437e 100755
--- a/monitor/josef_leveldb.py
+++ b/monitor/josef_leveldb.py
@@ -61,7 +61,7 @@ def db_append(db, key, val):
pass
else:
tmpl.append(val)
- print "Storing:",key,SEP.join(tmpl)
+ # print "Storing:",key,SEP.join(tmpl)
db.Put(key,SEP.join(tmpl))
def db_add_domain_2(db_dir, key_in, val_in, db_in=None):
diff --git a/monitor/josef_reader.py b/monitor/josef_reader.py
index 82bdc61..698aa6c 100755
--- a/monitor/josef_reader.py
+++ b/monitor/josef_reader.py
@@ -106,7 +106,6 @@ class monitored_entry:
def db_monitor_domain(domain, log=None, exclude_invalid=None, get_cert=None, issuer=None):
# print domain
raw = db_lookup_domain(DB_PATH, domain)
- print raw
cur_time = dt.now()
count_valid = 0
@@ -195,11 +194,11 @@ def db_monitor_domain(domain, log=None, exclude_invalid=None, get_cert=None, iss
res.append(me)
- # print str(count_all) + " matches found. " \
- # + str(count_valid) + " valid, " \
- # + str(count_expired) + " expired and " \
- # + str(count_not_yet_valid) + " not yet valid for " \
- # + domain
+ print str(count_all) + " matches found. " \
+ + str(count_valid) + " valid, " \
+ + str(count_expired) + " expired and " \
+ + str(count_not_yet_valid) + " not yet valid for " \
+ + domain
return res
if __name__ == "__main__":