diff options
Diffstat (limited to 'src/daq/nginx-lua/s5-nginx.lua')
-rw-r--r-- | src/daq/nginx-lua/s5-nginx.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daq/nginx-lua/s5-nginx.lua b/src/daq/nginx-lua/s5-nginx.lua index 13925c5..ac46224 100644 --- a/src/daq/nginx-lua/s5-nginx.lua +++ b/src/daq/nginx-lua/s5-nginx.lua @@ -122,7 +122,7 @@ function _SFIVE.fetch() for i, k in ipairs(logs) do local ok, err = ngx.say(sfive_data:get(k)) if not ok then - ngx.log(ngx.ERR, "SFive(fetch): failed to send data set: ", err) + ngx.log(ngx.ERR, "SFive(fetch): failed to send data set (" .. err .. ") - disconnecting client") lock:unlock("fetch") return end @@ -131,7 +131,7 @@ function _SFIVE.fetch() ngx.flush() local idx, err = sfive:get("log:idx") if not idx then - ngx.log(ngx.ERR, "SFive(fetch): failed to get log index: ", err) + ngx.log(ngx.ERR, "SFive(fetch): failed to get log index: " .. err) else if idx >= config.log_max_index then local ok, err = sfive:replace("log:idx", 0) |