no share in unauthenticated
This commit is contained in:
@@ -7,7 +7,8 @@ class Notifier:
|
||||
pass
|
||||
def notify(self, msg):
|
||||
self.output = open('/code/data/notifier.log','at')
|
||||
msg['address'] = msg['environment']['HTTP_X_FORWARDED_FOR']
|
||||
if 'HTTP_X_FORWARDED_FOR' in msg['environment']:
|
||||
msg['address'] = msg['environment']['HTTP_X_FORWARDED_FOR']
|
||||
msg['date'] = datetime.now().isoformat()
|
||||
del msg['environment']
|
||||
self.output.write(json.dumps(msg, sort_keys = True)+"\n")
|
||||
|
||||
Reference in New Issue
Block a user