[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 01/07: cache result from log level check
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 01/07: cache result from log level check |
Date: |
Sat, 11 Aug 2018 11:43:34 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit 6d6b223694303d3b437a2dcee72e4d3542505066
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Aug 11 05:25:21 2018 +0200
cache result from log level check
---
src/exchange/taler-exchange-httpd.c | 25 +++++++++++++++++++++----
1 file changed, 21 insertions(+), 4 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd.c
b/src/exchange/taler-exchange-httpd.c
index 19c318d..286614a 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -721,16 +721,33 @@ handle_mhd_logs (void *cls,
const char *fm,
va_list ap)
{
+ static int cache;
char buf[2048];
+ if (-1 == cache)
+ return;
+ if (0 == cache)
+ {
+ if (0 ==
+ GNUNET_get_log_call_status (GNUNET_ERROR_TYPE_INFO,
+ "libmicrohttpd",
+ __FILE__,
+ __FUNCTION__,
+ __LINE__))
+ {
+ cache = -1;
+ return;
+ }
+ }
+ cache = 1;
vsnprintf (buf,
sizeof (buf),
fm,
ap);
- GNUNET_log_from (GNUNET_ERROR_TYPE_INFO,
- "libmicrohttpd",
- "%s",
- buf);
+ GNUNET_log_from_nocheck (GNUNET_ERROR_TYPE_INFO,
+ "libmicrohttpd",
+ "%s",
+ buf);
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-exchange] branch master updated (18736c4 -> a1f2895), gnunet, 2018/08/11
- [GNUnet-SVN] [taler-exchange] 04/07: be aggressive, gnunet, 2018/08/11
- [GNUnet-SVN] [taler-exchange] 03/07: leave it to GNUnet, gnunet, 2018/08/11
- [GNUnet-SVN] [taler-exchange] 02/07: disable SECMEM for Taler exchange, it causes massive lock contention and then scalability issues, gnunet, 2018/08/11
- [GNUnet-SVN] [taler-exchange] 07/07: make wirewatch batch size adaptive to transaction success/failure, gnunet, 2018/08/11
- [GNUnet-SVN] [taler-exchange] 01/07: cache result from log level check,
gnunet <=
- [GNUnet-SVN] [taler-exchange] 05/07: make wirewatch properly handle (soft) failed transations, gnunet, 2018/08/11
- [GNUnet-SVN] [taler-exchange] 06/07: implement retries for a few more commands, gnunet, 2018/08/11