Kouhei Sutou
null+****@clear*****
Wed Sep 12 17:49:42 JST 2018
Kouhei Sutou 2018-09-12 17:49:42 +0900 (Wed, 12 Sep 2018) Revision: 239d5881ac23ec07d565502d8bbf505f65858772 https://github.com/groonga/groonga/commit/239d5881ac23ec07d565502d8bbf505f65858772 Message: query log: enable condition output by default You can disable it by GRN_QUERY_LOG_SHOW_CONDITION=no. Modified files: lib/expr.c Modified: lib/expr.c (+4 -4) =================================================================== --- lib/expr.c 2018-09-12 16:58:15 +0900 (20c47490f) +++ lib/expr.c 2018-09-12 17:49:42 +0900 (24c1514e5) @@ -40,7 +40,7 @@ static double grn_table_select_enough_filtered_ratio = 0.01; static int grn_table_select_max_n_enough_filtered_records = 1000; static grn_bool grn_table_select_and_min_skip_enable = GRN_TRUE; static grn_bool grn_scan_info_regexp_dot_asterisk_enable = GRN_TRUE; -static grn_bool grn_query_log_show_condition = GRN_FALSE; +static grn_bool grn_query_log_show_condition = GRN_TRUE; void grn_expr_init_from_env(void) @@ -96,10 +96,10 @@ grn_expr_init_from_env(void) grn_getenv("GRN_QUERY_LOG_SHOW_CONDITION", grn_query_log_show_condition_env, GRN_ENV_BUFFER_SIZE); - if (strcmp(grn_query_log_show_condition_env, "yes") == 0) { - grn_query_log_show_condition = GRN_TRUE; - } else { + if (strcmp(grn_query_log_show_condition_env, "no") == 0) { grn_query_log_show_condition = GRN_FALSE; + } else { + grn_query_log_show_condition = GRN_TRUE; } } } -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180912/d042e261/attachment-0001.htm