diff options
author | George Kadianakis <desnacked@riseup.net> | 2018-01-23 12:31:06 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2018-01-23 12:31:06 +0200 |
commit | 17daab76b87a9cc7491bdfdc46dd10c9d5d7023f (patch) | |
tree | 208b898b50753bd2efb632f47d6fbd1827868879 /src/or/hs_service.c | |
parent | 48a51c5f8b80a359da31bc5aaac8ecd25890fe0d (diff) | |
download | tor-17daab76b87a9cc7491bdfdc46dd10c9d5d7023f.tar.gz tor-17daab76b87a9cc7491bdfdc46dd10c9d5d7023f.zip |
Add onion service activity information to our heartbeat logs.
Diffstat (limited to 'src/or/hs_service.c')
-rw-r--r-- | src/or/hs_service.c | 3 |
1 files changed, 3 insertions, 0 deletions
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: |