diff options
author | Christian Pointner <equinox@spreadspace.org> | 2014-10-17 03:15:09 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2014-10-17 03:15:09 +0200 |
commit | 6340720a0d6ce9a5fb9d63b8896c78df02f5670e (patch) | |
tree | d1d31ed187a00eb1d8b59e292f7d1461faee7497 /src/daq/nginx-lua/s5-nginx-init.lua | |
parent | log data expires now (diff) |
sfive nginx-lua plugin works now
Diffstat (limited to 'src/daq/nginx-lua/s5-nginx-init.lua')
-rw-r--r-- | src/daq/nginx-lua/s5-nginx-init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/daq/nginx-lua/s5-nginx-init.lua b/src/daq/nginx-lua/s5-nginx-init.lua index d5bc6a7..9d73603 100644 --- a/src/daq/nginx-lua/s5-nginx-init.lua +++ b/src/daq/nginx-lua/s5-nginx-init.lua @@ -40,16 +40,16 @@ -- ngx.log(ngx.DEBUG, "SFive: loaded") -local sfive = ngx.shared.sfive; +local sfive = ngx.shared.sfive sfive:flush_all() sfive:flush_expired() -local sfive_log = ngx.shared.sfive_log; +local sfive_log = ngx.shared.sfive_log sfive_log:flush_all() sfive_log:flush_expired() local ok, err, force = sfive:set("log:idx", 0) if not ok then - ngx.log(ngx.ERR, "SFive: creating log index counter failed: " .. err) + ngx.log(ngx.ERR, "SFive(init): creating log index counter failed: " .. err) else - ngx.log(ngx.INFO, "SFive: initialized successfully!") + ngx.log(ngx.INFO, "SFive(init): initialized successfully!") end |