Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hs-v3: Relax severity of a log message when decoding descriptors. #1791

Closed
wants to merge 2 commits into from

Conversation

Labels
None yet
Projects
None yet
4 participants
@asn-d6
Copy link
Member

@asn-d6 asn-d6 commented Mar 11, 2020

Make it LOG_PROTOCOL_WARN and also add the expiration timestamp in there to
ease debugging in the future.

Make it LOG_PROTOCOL_WARN and also add the expiration timestamp in there to
ease debugging in the future.
expiration_str);
} else {
log_warn(LD_REND, "Invalid signature for %s: %s",
log_obj_type, tor_cert_describe_signature_status(cert));
Copy link
Contributor

@dgoulet-tor dgoulet-tor Mar 11, 2020

Wasn't the idea of the ticket to make this one proto warn? Because anyone can trigger that remotely or can they with your patch?

Copy link
Member Author

@asn-d6 asn-d6 Mar 12, 2020

It's true that people can trigger this remotely, but so is the case for hundreds of Tor's logs. AFAIK only the expiration case of this message is actually getting frequently triggered and that's why I only tried to hide that (and also add some more information for debugging).

I thought that by allowing the other messages get past, we might find a bug or something at some point.

Let me know and I can put everything at log proto warn.

@coveralls
Copy link

@coveralls coveralls commented Mar 12, 2020

Pull Request Test Coverage Report for Build 8314

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 63.863%

Totals Coverage Status
Change from base Build 8296: 0.002%
Covered Lines: 50564
Relevant Lines: 79176

💛 - Coveralls

@torproject-pusher torproject-pusher deleted the branch torproject:master May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment