summaryrefslogtreecommitdiff
path: root/modules/database
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-11-29 22:28:21 +0000
committerStefan Fritsch <sf@apache.org>2011-11-29 22:28:21 +0000
commitb4ec041ba788838246aa368f3506f5c3932dd1fb (patch)
tree0b0c7f5a0b1d76dfe0e621bad1dcbe3be593800f /modules/database
parent7896eac83d212c9da4d10d8cda42c5ab8a6b5929 (diff)
downloadhttpd-b4ec041ba788838246aa368f3506f5c3932dd1fb.tar.gz
Remove more log message prefixes that are now redundant as the
the error log format includes the module name. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1208110 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/database')
-rw-r--r--modules/database/mod_dbd.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/modules/database/mod_dbd.c b/modules/database/mod_dbd.c
index e21297c4f7..69206cd7f2 100644
--- a/modules/database/mod_dbd.c
+++ b/modules/database/mod_dbd.c
@@ -175,20 +175,20 @@ static const char *dbd_param(cmd_parms *cmd, void *dconf, const char *val)
*/
rv = apr_dbd_get_driver(cmd->pool, cfg->name, &driver);
if (APR_STATUS_IS_ENOTIMPL(rv)) {
- return apr_psprintf(cmd->pool, "DBD: No driver for %s", cfg->name);
+ return apr_psprintf(cmd->pool, "No driver for %s", cfg->name);
}
else if (APR_STATUS_IS_EDSOOPEN(rv)) {
return apr_psprintf(cmd->pool,
#ifdef NETWARE
- "DBD: Can't load driver file dbd%s.nlm",
+ "Can't load driver file dbd%s.nlm",
#else
- "DBD: Can't load driver file apr_dbd_%s.so",
+ "Can't load driver file apr_dbd_%s.so",
#endif
cfg->name);
}
else if (APR_STATUS_IS_ESYMNOTFOUND(rv)) {
return apr_psprintf(cmd->pool,
- "DBD: Failed to load driver apr_dbd_%s_driver",
+ "Failed to load driver apr_dbd_%s_driver",
cfg->name);
}
break;
@@ -522,7 +522,7 @@ static apr_status_t dbd_construct(void **data_ptr,
rv = apr_pool_create(&rec_pool, pool);
if (rv != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_CRIT, rv, cfg->server,
- "DBD: Failed to create memory pool");
+ "Failed to create memory pool");
return rv;
}
@@ -539,20 +539,20 @@ static apr_status_t dbd_construct(void **data_ptr,
if (rv != APR_SUCCESS) {
if (APR_STATUS_IS_ENOTIMPL(rv)) {
ap_log_error(APLOG_MARK, APLOG_ERR, rv, cfg->server,
- "DBD: driver for %s not available", cfg->name);
+ "driver for %s not available", cfg->name);
}
else if (APR_STATUS_IS_EDSOOPEN(rv)) {
ap_log_error(APLOG_MARK, APLOG_ERR, rv, cfg->server,
- "DBD: can't find driver for %s", cfg->name);
+ "can't find driver for %s", cfg->name);
}
else if (APR_STATUS_IS_ESYMNOTFOUND(rv)) {
ap_log_error(APLOG_MARK, APLOG_ERR, rv, cfg->server,
- "DBD: driver for %s is invalid or corrupted",
+ "driver for %s is invalid or corrupted",
cfg->name);
}
else {
ap_log_error(APLOG_MARK, APLOG_ERR, rv, cfg->server,
- "DBD: mod_dbd not compatible with APR in get_driver");
+ "mod_dbd not compatible with APR in get_driver");
}
apr_pool_destroy(rec->pool);
return rv;
@@ -563,11 +563,11 @@ static apr_status_t dbd_construct(void **data_ptr,
switch (rv) {
case APR_EGENERAL:
ap_log_error(APLOG_MARK, APLOG_ERR, rv, cfg->server,
- "DBD: Can't connect to %s: %s", cfg->name, err);
+ "Can't connect to %s: %s", cfg->name, err);
break;
default:
ap_log_error(APLOG_MARK, APLOG_ERR, rv, cfg->server,
- "DBD: mod_dbd not compatible with APR in open");
+ "mod_dbd not compatible with APR in open");
break;
}
@@ -584,7 +584,7 @@ static apr_status_t dbd_construct(void **data_ptr,
rv = apr_pool_create(&prepared_pool, rec->pool);
if (rv != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_CRIT, rv, cfg->server,
- "DBD: Failed to create memory pool");
+ "Failed to create memory pool");
apr_pool_destroy(rec->pool);
return rv;
@@ -594,7 +594,7 @@ static apr_status_t dbd_construct(void **data_ptr,
if (rv != APR_SUCCESS) {
const char *errmsg = apr_dbd_error(rec->driver, rec->handle, rv);
ap_log_error(APLOG_MARK, APLOG_ERR, rv, cfg->server,
- "DBD: failed to prepare SQL statements: %s",
+ "failed to prepare SQL statements: %s",
(errmsg ? errmsg : "[???]"));
apr_pool_destroy(rec->pool);
@@ -648,7 +648,7 @@ static apr_status_t dbd_setup(server_rec *s, dbd_group_t *group)
group->pool);
if (rv != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
- "DBD: failed to initialise");
+ "failed to initialise");
return rv;
}
@@ -670,7 +670,7 @@ static apr_status_t dbd_setup_init(apr_pool_t *pool, server_rec *s)
rv2 = apr_pool_create(&group->pool, pool);
if (rv2 != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_CRIT, rv2, s,
- "DBD: Failed to create reslist cleanup memory pool");
+ "Failed to create reslist cleanup memory pool");
return rv2;
}
@@ -690,7 +690,7 @@ static apr_status_t dbd_setup_init(apr_pool_t *pool, server_rec *s)
APR_THREAD_MUTEX_DEFAULT, pool);
if (rv2 != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_CRIT, rv2, s,
- "DBD: Failed to create thread mutex");
+ "Failed to create thread mutex");
return rv2;
}
#endif
@@ -704,7 +704,7 @@ static void dbd_child_init(apr_pool_t *p, server_rec *s)
apr_status_t rv = dbd_setup_init(p, s);
if (rv) {
ap_log_error(APLOG_MARK, APLOG_CRIT, rv, s,
- "DBD: child init failed!");
+ "child init failed!");
}
}
@@ -724,7 +724,7 @@ static apr_status_t dbd_setup_lock(server_rec *s, dbd_group_t *group)
rv2 = apr_thread_mutex_lock(group->mutex);
if (rv2 != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_ERR, rv2, s,
- "DBD: Failed to acquire thread mutex");
+ "Failed to acquire thread mutex");
return rv2;
}
@@ -735,7 +735,7 @@ static apr_status_t dbd_setup_lock(server_rec *s, dbd_group_t *group)
rv2 = apr_thread_mutex_unlock(group->mutex);
if (rv2 != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_ERR, rv2, s,
- "DBD: Failed to release thread mutex");
+ "Failed to release thread mutex");
if (rv == APR_SUCCESS) {
rv = rv2;
}
@@ -799,7 +799,7 @@ DBD_DECLARE_NONSTD(ap_dbd_t*) ap_dbd_open(apr_pool_t *pool, server_rec *s)
/* If nothing is configured, we shouldn't be here */
if (cfg->name == no_dbdriver) {
- ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, "DBD: not configured");
+ ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, "not configured");
return NULL;
}