[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: fix log levels
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: fix log levels |
Date: |
Sun, 28 Mar 2021 22:00:35 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new 2dcbafb fix log levels
2dcbafb is described below
commit 2dcbafbb1790158e4aab30672f70822e41bc9420
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Mar 28 22:00:33 2021 +0200
fix log levels
---
src/backend/anastasis-httpd_truth_upload.c | 37 ++++++++++++++++--------------
1 file changed, 20 insertions(+), 17 deletions(-)
diff --git a/src/backend/anastasis-httpd_truth_upload.c
b/src/backend/anastasis-httpd_truth_upload.c
index b5696eb..9823f4e 100644
--- a/src/backend/anastasis-httpd_truth_upload.c
+++ b/src/backend/anastasis-httpd_truth_upload.c
@@ -201,8 +201,9 @@ make_payment_request (struct TruthUploadContext *tuc)
pfx,
hn,
order_id);
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Returning 402 %s\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Returning %u %s\n",
+ MHD_HTTP_PAYMENT_REQUIRED,
order_id);
GNUNET_free (order_id);
}
@@ -210,7 +211,7 @@ make_payment_request (struct TruthUploadContext *tuc)
MHD_add_response_header (resp,
ANASTASIS_HTTP_HEADER_TALER,
hdr));
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"TRUTH payment request made: %s\n",
hdr);
GNUNET_free (hdr);
@@ -281,7 +282,7 @@ check_payment_cb (void *cls,
struct TruthUploadContext *tuc = cls;
tuc->cpo = NULL;
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Checking backend order status returned %u\n",
hr->http_status);
switch (hr->http_status)
@@ -312,7 +313,7 @@ check_payment_cb (void *cls,
break;
}
}
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Payment confirmed, resuming upload\n");
break;
case TALER_MERCHANT_OSC_UNPAID:
@@ -348,8 +349,9 @@ check_payment_cb (void *cls,
order_id = GNUNET_STRINGS_data_to_string_alloc (
&tuc->truth_uuid,
sizeof(tuc->truth_uuid));
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "404, setting up fresh order %s\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "%u, setting up fresh order %s\n",
+ MHD_HTTP_NOT_FOUND,
order_id);
order = json_pack ("{s:o, s:s, s:s}",
"amount",
@@ -414,7 +416,7 @@ begin_payment (struct TruthUploadContext *tuc)
char *order_id;
struct GNUNET_TIME_Relative timeout;
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Checking backend order status...\n");
timeout = GNUNET_TIME_absolute_get_remaining (tuc->timeout);
order_id = GNUNET_STRINGS_data_to_string_alloc (
@@ -540,7 +542,7 @@ AH_handler_truth_post (
= GNUNET_TIME_relative_to_absolute (GNUNET_TIME_relative_multiply (
GNUNET_TIME_UNIT_MILLISECONDS,
timeout));
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Long polling for %u ms enabled\n",
timeout);
}
@@ -574,15 +576,16 @@ AH_handler_truth_post (
(0 ==
GNUNET_TIME_absolute_get_remaining (paid_until).rel_value_us) )
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "TRUTH payment required (%d)!\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Truth upload payment required (%d)!\n",
qs);
return begin_payment (tuc);
}
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "TRUTH paid until %llu (%d)!\n",
- (unsigned long long) GNUNET_TIME_absolute_get_remaining (
- paid_until).rel_value_us,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "TRUTH paid until %s (%d)!\n",
+ GNUNET_STRINGS_relative_time_to_string (
+ GNUNET_TIME_absolute_get_remaining (
+ paid_until)),
qs);
}
}
@@ -592,7 +595,7 @@ AH_handler_truth_post (
if (NULL != tuc->resp)
{
/* We generated a response asynchronously, queue that */
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Returning asynchronously generated response with HTTP status
%u\n",
tuc->response_code);
ret = MHD_queue_response (connection,
@@ -647,7 +650,7 @@ AH_handler_truth_post (
}
}
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Storing truth!\n");
qs = db->store_truth (db->cls,
truth_uuid,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: fix log levels,
gnunet <=