mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-22 07:00:28 +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:
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user