cleanup log

This commit is contained in:
2021-11-18 16:57:52 +08:00
parent 416d598170
commit 14406d5cc3
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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
+3 -3
View File
@@ -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