send the whole environment

This commit is contained in:
Ville Rantanen
2018-02-19 15:18:40 +02:00
parent 43b73ddfc5
commit 6b548daee4

View File

@@ -378,10 +378,7 @@ def makedirs_rights(path):
def notify(msg): def notify(msg):
if 'notifier' in app.config: if 'notifier' in app.config:
msg['address'] = "%s:%s"%( msg['environment'] = request.environ
request.remote_addr,
request.environ['REMOTE_ADDR']
)
app.config['notifier'].notify(msg) app.config['notifier'].notify(msg)