Skip to content

Commit 54c14a3

Browse files
committed
disable extraneous debug logging
1 parent 3cbe44a commit 54c14a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nginx.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ http {
2727
local upstream = os.getenv("npm_config_registry")
2828
-- escape . and - which have special meaning in Lua patterns
2929
upstream = upstream:gsub("%.", "%%."):gsub("%-", "%%-"):gsub("/+$", "")
30-
ngx.log(ngx.ERR, 'using upstream base:', upstream)
30+
-- ngx.log(ngx.ERR, 'using upstream base:', upstream)
3131
return upstream
3232
}
3333
set_by_lua_block $npm_config_registry {
3434
local upstream = os.getenv("npm_config_registry"):gsub("/+$", "")
35-
ngx.log(ngx.ERR, 'using upstream server:', upstream)
35+
-- ngx.log(ngx.ERR, 'using upstream server:', upstream)
3636
return upstream
3737
}
3838
location ~ ^/.*\.tgz$ {
@@ -60,7 +60,7 @@ http {
6060
local upstream = ngx.var.upstream_base
6161
-- need to construct URL because we may be proxying http<->https
6262
local base = ngx.var.scheme .. '://' .. ngx.var.http_host
63-
ngx.log(ngx.ERR, "Modifying JSON of " .. ngx.var.uri .. " to replace '" .. upstream .. "' with '" .. base .. "'")
63+
-- ngx.log(ngx.ERR, "Modifying JSON of " .. ngx.var.uri .. " to replace '" .. upstream .. "' with '" .. base .. "'")
6464
ngx.arg[1] = string.gsub(ngx.arg[1], upstream, base)
6565
}
6666
}

0 commit comments

Comments
 (0)