diff --git a/prod/upload/combine.lua b/prod/upload/combine.lua index 5ee8725..3b3329d 100644 --- a/prod/upload/combine.lua +++ b/prod/upload/combine.lua @@ -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 diff --git a/prod/upload/upload.lua b/prod/upload/upload.lua index e8e0f8c..49b2bb1 100644 --- a/prod/upload/upload.lua +++ b/prod/upload/upload.lua @@ -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