Skip to content

Commit ea8995e

Browse files
committed
Reduce log level for debug messages
Debians nginx is built using --with-debug, meaning that these messages will be printed unconditionally if they're at level "INFO". Also, there are some places that use NGX_LOG_INFO and some that use NGX_LOG_DEBUG in the same "if (NGX_DEBUG)" block, so this makes the code more consistent.
1 parent 3575542 commit ea8995e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

ngx_http_auth_spnego_module.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -383,22 +383,22 @@ static char *ngx_http_auth_spnego_merge_loc_conf(ngx_conf_t *cf, void *parent,
383383
prev->constrained_delegation, 0);
384384

385385
#if (NGX_DEBUG)
386-
ngx_conf_log_error(NGX_LOG_INFO, cf, 0, "auth_spnego: protect = %i",
386+
ngx_conf_log_error(NGX_LOG_DEBUG, cf, 0, "auth_spnego: protect = %i",
387387
conf->protect);
388-
ngx_conf_log_error(NGX_LOG_INFO, cf, 0, "auth_spnego: realm@0x%p = %s",
388+
ngx_conf_log_error(NGX_LOG_DEBUG, cf, 0, "auth_spnego: realm@0x%p = %s",
389389
conf->realm.data, conf->realm.data);
390-
ngx_conf_log_error(NGX_LOG_INFO, cf, 0, "auth_spnego: keytab@0x%p = %s",
390+
ngx_conf_log_error(NGX_LOG_DEBUG, cf, 0, "auth_spnego: keytab@0x%p = %s",
391391
conf->keytab.data, conf->keytab.data);
392-
ngx_conf_log_error(NGX_LOG_INFO, cf, 0,
392+
ngx_conf_log_error(NGX_LOG_DEBUG, cf, 0,
393393
"auth_spnego: service_ccache@0x%p = %s",
394394
conf->service_ccache.data, conf->service_ccache.data);
395-
ngx_conf_log_error(NGX_LOG_INFO, cf, 0, "auth_spnego: srvcname@0x%p = %s",
395+
ngx_conf_log_error(NGX_LOG_DEBUG, cf, 0, "auth_spnego: srvcname@0x%p = %s",
396396
conf->srvcname.data, conf->srvcname.data);
397-
ngx_conf_log_error(NGX_LOG_INFO, cf, 0, "auth_spnego: fqun = %i",
397+
ngx_conf_log_error(NGX_LOG_DEBUG, cf, 0, "auth_spnego: fqun = %i",
398398
conf->fqun);
399-
ngx_conf_log_error(NGX_LOG_INFO, cf, 0, "auth_spnego: allow_basic = %i",
399+
ngx_conf_log_error(NGX_LOG_DEBUG, cf, 0, "auth_spnego: allow_basic = %i",
400400
conf->allow_basic);
401-
ngx_conf_log_error(NGX_LOG_INFO, cf, 0, "auth_spnego: force_realm = %i",
401+
ngx_conf_log_error(NGX_LOG_DEBUG, cf, 0, "auth_spnego: force_realm = %i",
402402
conf->force_realm);
403403

404404
if (NGX_CONF_UNSET_PTR != conf->auth_princs) {
@@ -424,14 +424,14 @@ static char *ngx_http_auth_spnego_merge_loc_conf(ngx_conf_t *cf, void *parent,
424424
}
425425
#endif
426426

427-
ngx_conf_log_error(NGX_LOG_INFO, cf, 0, "auth_spnego: map_to_local = %i",
427+
ngx_conf_log_error(NGX_LOG_DEBUG, cf, 0, "auth_spnego: map_to_local = %i",
428428
conf->map_to_local);
429429

430-
ngx_conf_log_error(NGX_LOG_INFO, cf, 0,
430+
ngx_conf_log_error(NGX_LOG_DEBUG, cf, 0,
431431
"auth_spnego: delegate_credentials = %i",
432432
conf->delegate_credentials);
433433

434-
ngx_conf_log_error(NGX_LOG_INFO, cf, 0,
434+
ngx_conf_log_error(NGX_LOG_DEBUG, cf, 0,
435435
"auth_spnego: constrained_delegation = %i",
436436
conf->constrained_delegation);
437437
#endif

0 commit comments

Comments
 (0)