cleanup log
This commit is contained in:
@@ -26,7 +26,7 @@ local convert = ngx.var.convert
|
||||
if not magick then
|
||||
if not convert then
|
||||
ngx.status = 500
|
||||
ngx.say("image magick not found.")
|
||||
ngx.say("ImageMagick NOT FOUND.")
|
||||
return
|
||||
end
|
||||
magick = ""
|
||||
@@ -43,5 +43,5 @@ if result and code == 0 then
|
||||
ngx.say(content)
|
||||
else
|
||||
ngx.status = 500
|
||||
ngx.say("image combine failed.")
|
||||
ngx.say("IMAGE COMBINE *FAILED*")
|
||||
end
|
||||
|
||||
@@ -21,7 +21,7 @@ while true do
|
||||
local typ, res, err = form:read()
|
||||
|
||||
if not typ then
|
||||
ngx.say("failed to read: ", err)
|
||||
ngx.say("FAILED TO READ *UPLOAD IMAGE* -> ", err)
|
||||
return
|
||||
end
|
||||
|
||||
@@ -70,7 +70,7 @@ while true do
|
||||
|
||||
local body_text = cjson.encode({task_type = TaskTypes.UPLOAD_PICTURE, data = {images = files}})
|
||||
|
||||
ngx.log(ngx.INFO, 'UPLOAD_PICTURE body_text ->', body_text)
|
||||
ngx.log(ngx.INFO, 'UPLOAD_PICTURE *body_text* ->', body_text)
|
||||
local res, err = httpc:request_uri(
|
||||
remote_url,
|
||||
{
|
||||
@@ -84,7 +84,7 @@ while true do
|
||||
}
|
||||
)
|
||||
if 201 ~= res.status then
|
||||
ngx.log(ngx.ERR, "create task failed", err)
|
||||
ngx.log(ngx.ERR, "TASK CREATE *FAILED*", err)
|
||||
ngx.say(err)
|
||||
ngx.exit(res.status)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user