commit | a9a8fba2c5deb8fea368eb589806a9a68c0ddc85 | [log] [tgz] |
---|---|---|
author | Ildar Svetlov <isvetlov@mirantis.com> | Fri Oct 12 19:37:14 2018 +0400 |
committer | Ildar Svetlov <isvetlov@mirantis.com> | Fri Oct 12 19:37:14 2018 +0400 |
tree | 9390e968d6e4d56bce6dfa98769738ea7b26fe19 | |
parent | abf6f9e58602eb7e5a841159712645c5a78bae04 [diff] |
Fx else if in lua Change-Id: Idf02bf232e1e583c8417b8cfcdd8c53873d43ea6
diff --git a/heka/files/lua/decoders/apache_wsgi_log.lua b/heka/files/lua/decoders/apache_wsgi_log.lua index 48a4524..05424ec 100644 --- a/heka/files/lua/decoders/apache_wsgi_log.lua +++ b/heka/files/lua/decoders/apache_wsgi_log.lua
@@ -68,7 +68,7 @@ end if m.http_x_forwarded_for and patt.ip_address:match(m.http_x_forwarded_for) then msg.Fields.http_client_ip_address = m.http_x_forwarded_for - else if m.remote_addr then + elseif m.remote_addr then msg.Fields.http_client_ip_address = m.remote_addr end