Skip to content

Commit

Permalink
fix: 파일명은 응답에 포함되지 않도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizyHub committed Aug 15, 2024
1 parent 30f39ca commit 646d600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx/sites-available/default
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ server {
location /count {
content_by_lua_block {
-- access.log의 라인 수를 세어 successCount로 사용
local handle_access = io.popen("wc -l /var/log/nginx/access.log")
local handle_access = io.popen("wc -l /var/log/nginx/access.log | cut -d' ' -f1")
local successCount = handle_access:read("*a")
handle_access:close()

-- error.log의 라인 수를 세어 errorCount로 사용
local handle_error = io.popen("wc -l /var/log/nginx/error.log")
local handle_error = io.popen("wc -l /var/log/nginx/error.log | cut -d' ' -f1")
local errorCount = handle_error:read("*a")
handle_error:close()

Expand Down

0 comments on commit 646d600

Please sign in to comment.