summaryrefslogtreecommitdiff
path: root/src/daq
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-10-19 00:51:55 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-10-19 00:51:55 +0200
commit29f8b18ead7c8c9eefedbab145dc8be47698ce62 (patch)
treeac936b764ae7c45b2a9ac90a0f5a392fae461574 /src/daq
parentfixed fetch error handling (diff)
daq: nginx-lua improved log output
Diffstat (limited to 'src/daq')
-rw-r--r--src/daq/nginx-lua/s5-nginx.lua4
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)