Kouhei Sutou 2019-01-21 15:26:19 +0900 (Mon, 21 Jan 2019) Revision: 06f065855cbb30184308d8825b9ceb1f41a7263f https://github.com/groonga/groonga/commit/06f065855cbb30184308d8825b9ceb1f41a7263f Message: Revert "Update ctx->errlog after logging" This reverts commit 18eaffc65fb9e80d62d1a692f74e50c7bb5bec52. It breaks logging feature. We should not use ctx->errbuf in log argument. Modified files: lib/grn_ctx.h Modified: lib/grn_ctx.h (+1 -1) =================================================================== --- lib/grn_ctx.h 2019-01-21 14:44:11 +0900 (7d3316f60) +++ lib/grn_ctx.h 2019-01-21 15:26:19 +0900 (51eebaf3d) @@ -125,12 +125,12 @@ GRN_API void grn_ctx_impl_set_current_error_message(grn_ctx *ctx); ctx_->errfile = __FILE__;\ ctx_->errline = __LINE__;\ ctx_->errfunc = __FUNCTION__;\ + grn_ctx_log(ctx, __VA_ARGS__);\ if (grn_ctx_impl_should_log(ctx)) {\ grn_ctx_impl_set_current_error_message(ctx);\ GRN_LOG(ctx, lvl, __VA_ARGS__);\ if (lvl <= GRN_LOG_ERROR) { LOGTRACE(ctx, lvl); }\ }\ - grn_ctx_log(ctx, __VA_ARGS__);\ } while (0) #define ERRP(ctx,lvl) \ -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190121/af2d9276/attachment.html>