[Groonga-commit] groonga/groonga at 179c0e5 [master] config: add key to error message on delete failure

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Feb 28 18:25:10 JST 2018


Kouhei Sutou	2018-02-28 18:25:10 +0900 (Wed, 28 Feb 2018)

  New Revision: 179c0e5e2b20aab036c12fb949aa29b169d612f5
  https://github.com/groonga/groonga/commit/179c0e5e2b20aab036c12fb949aa29b169d612f5

  Message:
    config: add key to error message on delete failure

  Modified files:
    lib/config.c

  Modified: lib/config.c (+6 -2)
===================================================================
--- lib/config.c    2018-02-27 10:12:32 +0900 (ef40cc9c4)
+++ lib/config.c    2018-02-28 18:25:10 +0900 (fba723e0e)
@@ -155,7 +155,9 @@ grn_config_delete(grn_ctx *ctx,
     rc = grn_io_lock(ctx, config->io, grn_lock_timeout);
     if (rc != GRN_SUCCESS) {
       if (ctx->rc == GRN_SUCCESS) {
-        ERR(rc, "[config][delete] failed to lock");
+        ERR(rc,
+            "[config][delete] failed to lock: <%.*s>",
+            key_size, key);
       }
       GRN_API_RETURN(rc);
     }
@@ -163,7 +165,9 @@ grn_config_delete(grn_ctx *ctx,
     grn_io_unlock(config->io);
     if (rc != GRN_SUCCESS) {
       if (ctx->rc == GRN_SUCCESS) {
-        ERR(rc, "[config][delete] failed to delete");
+        ERR(rc,
+            "[config][delete] failed to delete: <%.*s>",
+            key_size, key);
       }
     }
   }
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180228/1b437986/attachment.htm 



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