|
|
61f723 |
From d3771cf05358c0230c8c77d7f7dabe9219ea7c8c Mon Sep 17 00:00:00 2001
|
|
|
61f723 |
From: Mark Reynolds <mreynolds@redhat.com>
|
|
|
61f723 |
Date: Wed, 3 May 2017 14:37:11 -0400
|
|
|
61f723 |
Subject: [PATCH] Ticket 49075 - Adjust logging severity levels
|
|
|
61f723 |
|
|
|
61f723 |
Description: There are places wherre we log a severity "ERR",
|
|
|
61f723 |
when in fact it is a benign message.
|
|
|
61f723 |
|
|
|
61f723 |
https://pagure.io/389-ds-base/issue/49075
|
|
|
61f723 |
|
|
|
61f723 |
Reviewed by: firstyear(Thanks!)
|
|
|
61f723 |
|
|
|
61f723 |
(cherry picked from commit 0762e393850f54ce8462c45321b3db084bd8a0e1)
|
|
|
61f723 |
---
|
|
|
61f723 |
ldap/servers/slapd/back-ldbm/ldbm_instance_config.c | 17 ++++++++++-------
|
|
|
61f723 |
1 file changed, 10 insertions(+), 7 deletions(-)
|
|
|
61f723 |
|
|
|
61f723 |
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c b/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c
|
|
|
61f723 |
index 36d830d..55f1887 100644
|
|
|
61f723 |
--- a/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c
|
|
|
61f723 |
+++ b/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c
|
|
|
61f723 |
@@ -118,10 +118,12 @@ ldbm_instance_config_cachememsize_set(void *arg, void *value, char *errorbuf, in
|
|
|
61f723 |
|
|
|
61f723 |
if (sane == UTIL_CACHESIZE_ERROR){
|
|
|
61f723 |
slapi_create_errormsg(errorbuf, SLAPI_DSE_RETURNTEXT_SIZE, "Error: unable to determine system memory limits.");
|
|
|
61f723 |
- slapi_log_err(SLAPI_LOG_ERR, "ldbm_instance_config_cachememsize_set", "Enable to determine system memory limits.\n");
|
|
|
61f723 |
+ slapi_log_err(SLAPI_LOG_ERR, "ldbm_instance_config_cachememsize_set",
|
|
|
61f723 |
+ "Enable to determine system memory limits.\n");
|
|
|
61f723 |
return LDAP_UNWILLING_TO_PERFORM;
|
|
|
61f723 |
} else if (sane == UTIL_CACHESIZE_REDUCED) {
|
|
|
61f723 |
- slapi_log_err(SLAPI_LOG_WARNING, "ldbm_instance_config_cachememsize_set", "delta +%"PRIu64" of request %"PRIu64" reduced to %"PRIu64"\n", delta_original, val, delta);
|
|
|
61f723 |
+ slapi_log_err(SLAPI_LOG_WARNING, "ldbm_instance_config_cachememsize_set",
|
|
|
61f723 |
+ "delta +%"PRIu64" of request %"PRIu64" reduced to %"PRIu64"\n", delta_original, val, delta);
|
|
|
61f723 |
/*
|
|
|
61f723 |
* This works as: value = 100
|
|
|
61f723 |
* delta_original to inst, 20;
|
|
|
61f723 |
@@ -133,7 +135,8 @@ ldbm_instance_config_cachememsize_set(void *arg, void *value, char *errorbuf, in
|
|
|
61f723 |
}
|
|
|
61f723 |
}
|
|
|
61f723 |
if (inst->inst_cache.c_maxsize < MINCACHESIZE || val < MINCACHESIZE) {
|
|
|
61f723 |
- slapi_log_err(SLAPI_LOG_ERR, "ldbm_instance_config_cachememsize_set", "force a minimal value %"PRIu64"\n", MINCACHESIZE);
|
|
|
61f723 |
+ slapi_log_err(SLAPI_LOG_INFO, "ldbm_instance_config_cachememsize_set",
|
|
|
61f723 |
+ "force a minimal value %"PRIu64"\n", MINCACHESIZE);
|
|
|
61f723 |
/* This value will trigger an autotune next start up, but it should increase only */
|
|
|
61f723 |
val = MINCACHESIZE;
|
|
|
61f723 |
}
|
|
|
61f723 |
@@ -1134,7 +1137,7 @@ ldbm_instance_post_delete_instance_entry_callback(Slapi_PBlock *pb, Slapi_Entry*
|
|
|
61f723 |
return SLAPI_DSE_CALLBACK_ERROR;
|
|
|
61f723 |
}
|
|
|
61f723 |
|
|
|
61f723 |
- slapi_log_err(SLAPI_LOG_ERR, "ldbm_instance_post_delete_instance_entry_callback",
|
|
|
61f723 |
+ slapi_log_err(SLAPI_LOG_INFO, "ldbm_instance_post_delete_instance_entry_callback",
|
|
|
61f723 |
"Removing '%s'.\n", instance_name);
|
|
|
61f723 |
|
|
|
61f723 |
cache_destroy_please(&inst->inst_cache, CACHE_TYPE_ENTRY);
|
|
|
61f723 |
@@ -1171,9 +1174,9 @@ ldbm_instance_post_delete_instance_entry_callback(Slapi_PBlock *pb, Slapi_Entry*
|
|
|
61f723 |
dbp = PR_smprintf("%s/%s", inst_dirp, direntry->name);
|
|
|
61f723 |
if (NULL == dbp) {
|
|
|
61f723 |
slapi_log_err(SLAPI_LOG_ERR,
|
|
|
61f723 |
- "ldbm_instance_post_delete_instance_entry_callback",
|
|
|
61f723 |
- "Failed to generate db path: %s/%s\n",
|
|
|
61f723 |
- inst_dirp, direntry->name);
|
|
|
61f723 |
+ "ldbm_instance_post_delete_instance_entry_callback",
|
|
|
61f723 |
+ "Failed to generate db path: %s/%s\n",
|
|
|
61f723 |
+ inst_dirp, direntry->name);
|
|
|
61f723 |
break;
|
|
|
61f723 |
}
|
|
|
61f723 |
|
|
|
61f723 |
--
|
|
|
61f723 |
2.9.3
|
|
|
61f723 |
|