5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-09-18 23:49:35 +00:00

include IP in log

This commit is contained in:
Michał Zieliński 2015-11-21 14:23:21 +01:00
parent 646d8d74e5
commit 63bc477ce6

View File

@ -10,8 +10,8 @@ def insert_graph_data(config, data, mail, ip, version):
except ValueError:
return 'Invalid JSON'
log = '[%s] version: %d, mail: %r, nodes: %d, edges: %d' % (
time.strftime('%Y-%m-%d %H:%M:%S'),
log = '[%s] ip: %s, version: %d, mail: %r, nodes: %d, edges: %d' % (
time.strftime('%Y-%m-%d %H:%M:%S'), ip,
version, mail, len(graph_data['nodes']), len(graph_data['edges']))
with open(config['LOG'], 'a') as f: