[Groonga-commit] groonga/gcs [master] Don't call log.error for success case

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Nov 5 12:17:54 JST 2012


YUKI Hiroshi	2012-11-05 12:17:54 +0900 (Mon, 05 Nov 2012)

  New Revision: cceb2acfe6df33ade6063c56e43a4897d407015c
  https://github.com/groonga/gcs/commit/cceb2acfe6df33ade6063c56e43a4897d407015c

  Log:
    Don't call log.error for success case

  Modified files:
    lib/api/2011-02-01/search.js

  Modified: lib/api/2011-02-01/search.js (+2 -1)
===================================================================
--- lib/api/2011-02-01/search.js    2012-11-05 12:14:54 +0900 (2eb8014)
+++ lib/api/2011-02-01/search.js    2012-11-05 12:17:54 +0900 (69213ad)
@@ -154,7 +154,8 @@ exports.createHandler = function(context, config) {
 
     select(context, selectQuery,
       function(error, data, numFoundRecords, facets) {
-        logger.error(error);
+        if (error)
+          logger.error(error);
 
         var finishedAt = new Date();
         var elapsedTime = finishedAt.getTime() - startedAt.getTime();
-------------- next part --------------
HTML����������������������������...
Download 



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