[Groonga-mysql-commit] mroonga/mroonga [master] Ignore query log

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Oct 24 11:29:12 JST 2012


Kouhei Sutou	2012-10-24 11:29:12 +0900 (Wed, 24 Oct 2012)

  New Revision: 1900c6d83ffb73ca855961dfbb123b02673ce0cb
  https://github.com/mroonga/mroonga/commit/1900c6d83ffb73ca855961dfbb123b02673ce0cb

  Log:
    Ignore query log
    
    Because it isn't usable when query API is not used.
    
    [groonga-dev,01044]
    
    Reported by akiyan. Thanks!!!

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+6 -0)
===================================================================
--- ha_mroonga.cpp    2012-10-24 11:25:36 +0900 (289f72f)
+++ ha_mroonga.cpp    2012-10-24 11:29:12 +0900 (53be5b8)
@@ -594,6 +594,12 @@ static void mrn_logger_func(int level, const char *time, const char *title,
                             const char *msg, const char *location,
                             void *func_arg)
 {
+  // TODO: REMOVE ME if groonga supports query logger.
+  // level == GRN_LOG_NONE means the log is query log.
+  if (level == GRN_LOG_NONE) {
+    return;
+  }
+
   const char slev[] = " EACewnid-";
   if (mrn_log_file_opened) {
     pthread_mutex_lock(&mrn_log_mutex);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index