[tor-commits] [tor/master] Make a pair of add_*_log() functions mockable.