From 17daab76b87a9cc7491bdfdc46dd10c9d5d7023f Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Tue, 23 Jan 2018 12:31:06 +0200 Subject: Add onion service activity information to our heartbeat logs. --- src/or/hs_service.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/or/hs_service.c') diff --git a/src/or/hs_service.c b/src/or/hs_service.c index 0db22991c2..64ab9c9ee7 100644 --- a/src/or/hs_service.c +++ b/src/or/hs_service.c @@ -36,6 +36,7 @@ #include "hs_ident.h" #include "hs_intropoint.h" #include "hs_service.h" +#include "hs_stats.h" /* Trunnel */ #include "ed25519_cert.h" @@ -3304,8 +3305,10 @@ hs_service_receive_introduce2(origin_circuit_t *circ, const uint8_t *payload, if (circ->hs_ident) { ret = service_handle_introduce2(circ, payload, payload_len); + hs_stats_note_introduce2_cell(1); } else { ret = rend_service_receive_introduction(circ, payload, payload_len); + hs_stats_note_introduce2_cell(0); } done: -- cgit v1.2.3-54-g00ecf