From 97c2484c8e7c0defd6b951e955b2bb178801a3f4 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 11 Jan 2019 02:17:54 +0800 Subject: [PATCH] Update metadata.py --- plugins/simdht/workers/metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/simdht/workers/metadata.py b/plugins/simdht/workers/metadata.py index d3dc7420d..504b44762 100755 --- a/plugins/simdht/workers/metadata.py +++ b/plugins/simdht/workers/metadata.py @@ -136,9 +136,9 @@ def save_metadata(dbcurr, binhash, address, start_time, data, blacklist): try: try: - print '\n', 'Saved', info['info_hash'], info['name'], (time.time() - start_time), 's', address[0], geoip.country_name_by_addr(address[0]), + print '\n', 'Saved', utcnow, info['info_hash'], info['name'], (time.time() - start_time), 's', address[0], geoip.country_name_by_addr(address[0]), except: - print '\n', 'Saved', info['info_hash'], sys.exc_info()[1] + print '\n', 'Saved', utcnow, info['info_hash'], sys.exc_info()[1] try: ret = dbcurr.execute('INSERT INTO search_hash(info_hash,category,data_hash,name,extension,classified,source_ip,tagged,' + 'length,create_time,last_seen,requests,comment,creator) VALUES(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)',