pgpool2.git / summary / log / commit / refs
commit 6b69392609699130c84d08f0aa363402091c24d5
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Thu Dec 30 13:06:38 2010 +0000
Fix bug with debug_level directive. Patch contributed by Gilles
Darold. Followings are his explanation.
I found a bug when playing with pgpool yesterday. The problem is that
enabling debug_level to 1 into pgpool.conf doesn't has any effect as it
is overriden in the main.c file after getting configuration so that it
is only enabled when the -d command line option is present.
main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 1074a3e7b..908493060 100644
--- a/main.c
+++ b/main.c
@@ -343,7 +343,8 @@ int main(int argc, char **argv)
/*
* Override debug level
*/
- pool_config->debug_level = debug_level;
+ if (pool_config->debug_level == 0)
+ pool_config->debug_level = debug_level;
if (pool_config->enable_pool_hba)
load_hba(hba_file);
[parent: edffd9c6c43b]