Ticket #23168: 001-desriptive_msg.patch

File 001-desriptive_msg.patch, 971 bytes (added by neel, 2 years ago)

Patch to change "Updating sampled guard status based on received consensus" message to more descriptive "Received directory document(s) on DATE"

  • src/or/entrynodes.c

    From a8b83d8ebb87640abeea5ffe75f63fa288ec6094 Mon Sep 17 00:00:00 2001
    From: Neel Chauhan <neel@neelc.org>
    Date: Mon, 2 Oct 2017 21:00:42 -0400
    Subject: [PATCH] Change "Updating sampled guard status based on received
     consensus" message to more descriptive "Received directory document(s) on
     DATE"
    
    ---
     src/or/entrynodes.c | 5 +++--
     1 file changed, 3 insertions(+), 2 deletions(-)
    
    diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
    index 129b98333..1c9a06b0b 100644
    a b sampled_guards_update_from_consensus(guard_selection_t *gs) 
    12361236             "no live consensus.");
    12371237    return;
    12381238  }
    1239   log_info(LD_GUARD, "Updating sampled guard status based on received "
    1240            "consensus.");
     1239  char desc_date[ISO_TIME_LEN + 1];
     1240  format_iso_time(desc_date, gs->last_time_on_internet);
     1241  log_info(LD_GUARD, "Received directory document(s) on %s.", desc_date);
    12411242
    12421243  int n_changes = 0;
    12431244