Kouhei Sutou
null+****@clear*****
Sun Jun 25 20:44:51 JST 2017
Kouhei Sutou 2017-06-25 20:44:51 +0900 (Sun, 25 Jun 2017) New Revision: 914db4e7035be680d97889cc69c3c943d10fbdff https://github.com/groonga/groonga/commit/914db4e7035be680d97889cc69c3c943d10fbdff Message: query_log_flags_*: support ALL and DEFAULT Added files: test/command/suite/query_log_flags_set/all.expected test/command/suite/query_log_flags_set/all.test test/command/suite/query_log_flags_set/default.expected test/command/suite/query_log_flags_set/default.test Modified files: lib/logger.c Modified: lib/logger.c (+2 -0) =================================================================== --- lib/logger.c 2017-06-25 17:22:54 +0900 (f7c8d5a) +++ lib/logger.c 2017-06-25 20:44:51 +0900 (334f2e8) @@ -502,6 +502,8 @@ grn_query_log_flags_parse(const char *string, CHECK_FLAG(CACHE); CHECK_FLAG(SIZE); CHECK_FLAG(SCORE); + CHECK_FLAG(ALL); + CHECK_FLAG(DEFAULT); #undef CHECK_FLAG Added: test/command/suite/query_log_flags_set/all.expected (+12 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/query_log_flags_set/all.expected 2017-06-25 20:44:51 +0900 (effe99a) @@ -0,0 +1,12 @@ +query_log_flags_set --flags ALL +[ + [ + 0, + 0.0, + 0.0 + ], + { + "previous": "COMMAND|RESULT_CODE", + "current": "COMMAND|RESULT_CODE|DESTINATION|CACHE|SIZE|SCORE" + } +] Added: test/command/suite/query_log_flags_set/all.test (+4 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/query_log_flags_set/all.test 2017-06-25 20:44:51 +0900 (c6a1e56) @@ -0,0 +1,4 @@ +#@disable-logging +query_log_flags_set --flags COMMAND|RESULT_CODE +#@enable-logging +query_log_flags_set --flags ALL Added: test/command/suite/query_log_flags_set/default.expected (+12 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/query_log_flags_set/default.expected 2017-06-25 20:44:51 +0900 (2a15a03) @@ -0,0 +1,12 @@ +query_log_flags_set --flags DEFAULT +[ + [ + 0, + 0.0, + 0.0 + ], + { + "previous": "COMMAND|RESULT_CODE", + "current": "COMMAND|RESULT_CODE|DESTINATION|CACHE|SIZE|SCORE" + } +] Added: test/command/suite/query_log_flags_set/default.test (+4 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/query_log_flags_set/default.test 2017-06-25 20:44:51 +0900 (df13e92) @@ -0,0 +1,4 @@ +#@disable-logging +query_log_flags_set --flags COMMAND|RESULT_CODE +#@enable-logging +query_log_flags_set --flags DEFAULT -------------- next part -------------- HTML����������������������������...Download