mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-22 12:50:27 +00:00
include IP in log
This commit is contained in:
parent
646d8d74e5
commit
63bc477ce6
@ -10,8 +10,8 @@ def insert_graph_data(config, data, mail, ip, version):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
return 'Invalid JSON'
|
return 'Invalid JSON'
|
||||||
|
|
||||||
log = '[%s] version: %d, mail: %r, nodes: %d, edges: %d' % (
|
log = '[%s] ip: %s, version: %d, mail: %r, nodes: %d, edges: %d' % (
|
||||||
time.strftime('%Y-%m-%d %H:%M:%S'),
|
time.strftime('%Y-%m-%d %H:%M:%S'), ip,
|
||||||
version, mail, len(graph_data['nodes']), len(graph_data['edges']))
|
version, mail, len(graph_data['nodes']), len(graph_data['edges']))
|
||||||
|
|
||||||
with open(config['LOG'], 'a') as f:
|
with open(config['LOG'], 'a') as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user