aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_service.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-02-20 11:41:53 -0500
committerGeorge Kadianakis <desnacked@riseup.net>2020-03-11 15:32:11 +0200
commitdf3f2bd9aa55a8ccab6b41c19859b4665ee3e3d2 (patch)
tree1506b7e7848c98592d09a010d6a5cc9b907dd6d9 /src/feature/hs/hs_service.h
parent4c40cf41671ba7d3577216d22353f7c90e948943 (diff)
downloadtor-df3f2bd9aa55a8ccab6b41c19859b4665ee3e3d2.tar.gz
tor-df3f2bd9aa55a8ccab6b41c19859b4665ee3e3d2.zip
hs-v3: Log reasons why service can't upload descriptor
When a service can not upload its descriptor(s), we have no logs on why. This adds logging for each possible reason for each descriptors. That logging is emitted every second so it is rate limited for each reason and per descriptor. Closes #33400 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_service.h')
-rw-r--r--src/feature/hs/hs_service.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/hs/hs_service.h b/src/feature/hs/hs_service.h
index 94a73b2fec..3fe14878ed 100644
--- a/src/feature/hs/hs_service.h
+++ b/src/feature/hs/hs_service.h
@@ -384,6 +384,9 @@ STATIC hs_service_t *get_first_service(void);
STATIC hs_service_intro_point_t *service_intro_point_find_by_ident(
const hs_service_t *service,
const hs_ident_circuit_t *ident);
+
+MOCK_DECL(STATIC unsigned int, count_desc_circuit_established,
+ (const hs_service_descriptor_t *desc));
#endif /* defined(TOR_UNIT_TESTS) */
/* Service accessors. */