summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2018-07-16 15:28:11 +0300
committerNick Mathewson <nickm@torproject.org>2018-07-17 15:57:46 -0400
commit14b507e5207ce7e581c5fc773921f8cf65d08247 (patch)
tree7f0cd242dcd1794e57889592901a9e604e289d71 /src
parent9e6235d290fce3eac4b9aa39da21a4f4479292c6 (diff)
downloadtor-14b507e5207ce7e581c5fc773921f8cf65d08247.tar.gz
tor-14b507e5207ce7e581c5fc773921f8cf65d08247.zip
Improve a log message.
Diffstat (limited to 'src')
-rw-r--r--src/or/hs_service.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/hs_service.c b/src/or/hs_service.c
index b4460b2ac4..560f48fb56 100644
--- a/src/or/hs_service.c
+++ b/src/or/hs_service.c
@@ -2332,13 +2332,17 @@ upload_descriptor_to_hsdir(const hs_service_t *service,
int is_next_desc = (service->desc_next == desc);
const uint8_t *idx = (is_next_desc) ? hsdir->hsdir_index.store_second:
hsdir->hsdir_index.store_first;
+ char *blinded_pubkey_log_str =
+ tor_strdup(hex_str((char*)&desc->blinded_kp.pubkey.pubkey, 32));
log_info(LD_REND, "Service %s %s descriptor of revision %" PRIu64
- " initiated upload request to %s with index %s",
+ " initiated upload request to %s with index %s (%s)",
safe_str_client(service->onion_address),
(is_next_desc) ? "next" : "current",
desc->desc->plaintext_data.revision_counter,
safe_str_client(node_describe(hsdir)),
- safe_str_client(hex_str((const char *) idx, 32)));
+ safe_str_client(hex_str((const char *) idx, 32)),
+ safe_str_client(blinded_pubkey_log_str));
+ tor_free(blinded_pubkey_log_str);
/* Fire a UPLOAD control port event. */
hs_control_desc_event_upload(service->onion_address, hsdir->identity,