From e1a050b9aefcd95aae3af05564f2e9bbd9db7019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= Date: Sun, 29 May 2022 23:43:57 +0800 Subject: [PATCH] update log --- scripts/upload_combined_image.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/upload_combined_image.lua b/scripts/upload_combined_image.lua index 1671408..4e2d57b 100644 --- a/scripts/upload_combined_image.lua +++ b/scripts/upload_combined_image.lua @@ -1,12 +1,14 @@ package.path = package.path .. ';/?.lua'; - +ngx.log(ngx.INFO, 'UPLOAD COMBINED IMAGE -> start') local upyun_upload = require("upyun_upload") +ngx.log(ngx.INFO, 'UPLOAD COMBINED IMAGE -> upyun_upload -> ', upyun_upload) local file_to_upload = string.match(ngx.var.request_uri, ".*/(.*)") +ngx.log(ngx.INFO, 'UPLOAD COMBINED IMAGE -> file to upload -> ', file_to_upload) + local file_dir = ngx.var.tmp_file_dir local fullpath = file_dir .. "/" .. file_to_upload .. ".jpeg"; -ngx.log(ngx.INFO, 'UPLOAD COMBINED IMAGE -> ', fullpath) - +ngx.log(ngx.INFO, 'UPLOAD COMBINED IMAGE -> fullpath -> ', fullpath) upyun_upload.upload(fullpath) \ No newline at end of file