From 63bc477ce61d50be523e9f48561c7055c573ccdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Sat, 21 Nov 2015 14:23:21 +0100 Subject: [PATCH] include IP in log --- web/graphData.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/graphData.py b/web/graphData.py index a7b84bd..aa9a2dd 100644 --- a/web/graphData.py +++ b/web/graphData.py @@ -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: