From f1c6760206d11883466a0b5e3163345376d1dd75 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Tue, 8 Jun 2010 11:26:04 +0200 Subject: [PATCH] Remove debug logs from set_document_root --- mod_vhost_ldap.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/mod_vhost_ldap.c b/mod_vhost_ldap.c index 97671af..64ee21b 100644 --- a/mod_vhost_ldap.c +++ b/mod_vhost_ldap.c @@ -123,15 +123,10 @@ static int set_document_root(request_rec *r, const char *arg) core_server_config *conf = ap_get_module_config(sconf, &core_module); /* Make it absolute, relative to ServerRoot */ - ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r, - "[mod_vhost_ldap.c] set_document_root: translating DocumentRoot [%s]", - arg); arg = ap_server_root_relative(r->pool, arg); - ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r, - "[mod_vhost_ldap.c] set_document_root: relative DocumentRoot [%s]", - arg); + if (arg == NULL) { - ap_log_rerror(APLOG_MARK, APLOG_WARNING|APLOG_NOERRNO, 0, r, + ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, "[mod_vhost_ldap.c] set_document_root: DocumentRoot [%s] must be a directory", arg); @@ -143,7 +138,7 @@ static int set_document_root(request_rec *r, const char *arg) APR_FILEPATH_TRUENAME, r->pool) != APR_SUCCESS || !ap_is_directory(r->pool, arg)) { - ap_log_rerror(APLOG_MARK, APLOG_STARTUP, 0, + ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, "[mod_vhost_ldap.c] set_document_root: Warning: DocumentRoot [%s] does not exist", arg); -- 2.45.1