Skip to content

Commit 497145c

Browse files
committed
comment debug log statements
comment debug log statements
1 parent 455a040 commit 497145c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/ngx_http_auth_jwt_module.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,14 @@ static ngx_int_t ngx_http_auth_jwt_handler(ngx_http_request_t *r)
206206
uri.len = request_uri_var->len;
207207
ngx_memcpy(uri.data, request_uri_var->data, request_uri_var->len);
208208

209-
char * tmp = ngx_str_t_to_char_ptr(r->pool, uri);
210-
211-
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "found uri with querystring %s", tmp);
209+
// ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "found uri with querystring %s", ngx_str_t_to_char_ptr(r->pool, uri));
212210
}
213211
else
214212
{
215213
// fallback to the querystring without params
216214
uri = r->uri;
217215

218-
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "fallback to querystring without params");
216+
// ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "fallback to querystring without params");
219217
}
220218

221219
// escape the URI
@@ -240,9 +238,7 @@ static ngx_int_t ngx_http_auth_jwt_handler(ngx_http_request_t *r)
240238
return_url_idx += uri_escaped.len;
241239
r->headers_out.___location->value.data = (u_char *)return_url;
242240

243-
char* return_url_printable = ngx_str_t_to_char_ptr(r->pool, r->headers_out.___location->value);
244-
245-
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "return_url: %s", return_url_printable);
241+
// ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "return_url: %s", ngx_str_t_to_char_ptr(r->pool, r->headers_out.___location->value));
246242
}
247243
else
248244
{

0 commit comments

Comments
 (0)