donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit bd99161ff1a6e72f756d85306f5f7436818be267
parent 9ca3826babf0f704964189c2293f2ef740f097d4
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Fri, 17 Jul 2026 19:30:04 +0200

only log on success

Diffstat:
Msrc/donaudb/insert_issued_receipt.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/donaudb/insert_issued_receipt.c b/src/donaudb/insert_issued_receipt.c @@ -70,8 +70,9 @@ DONAUDB_insert_issued_receipt ( params, rs); GNUNET_PQ_cleanup_query_params_closures (params); - GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Is the new receipts_to_day smaller than the max_per_year (1 = true): %d\n", - (*smaller_than_max_per_year)); + if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs) + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Is the new receipts_to_day smaller than the max_per_year (1 = true): %d\n", + (*smaller_than_max_per_year)); return qs; }