Skip to content

Commit 5f6a3b7

Browse files
committed
Merge pull request #4 from pkwarren/issue3
Fix building against nginx without the --with-debug option specified.
2 parents 7171df8 + 357d89d commit 5f6a3b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ngx_http_upstream_fair_module.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ ngx_http_upstream_init_fair(ngx_conf_t *cf, ngx_http_upstream_srv_conf_t *us)
645645
static void
646646
ngx_http_upstream_fair_update_nreq(ngx_http_upstream_fair_peer_data_t *fp, int delta, ngx_log_t *log)
647647
{
648+
#if (NGX_DEBUG)
648649
ngx_uint_t nreq;
649650
ngx_uint_t total_nreq;
650651

@@ -655,6 +656,7 @@ ngx_http_upstream_fair_update_nreq(ngx_http_upstream_fair_peer_data_t *fp, int d
655656
"[upstream_fair] nreq for peer %ui @ %p/%p now %d, total %d, delta %d",
656657
fp->current, fp->peers, fp->peers->peer[fp->current].shared, nreq,
657658
total_nreq, delta);
659+
#endif
658660
}
659661

660662
/*

0 commit comments

Comments
 (0)