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

WIP: Ticket30901 #1196

Closed
wants to merge 25 commits into from
Closed

WIP: Ticket30901 #1196

wants to merge 25 commits into from

Conversation

Labels
None yet
Projects
None yet
2 participants
@teor2345
Copy link
Contributor

@teor2345 teor2345 commented Aug 2, 2019

No description provided.

teor2345 added 7 commits Aug 1, 2019
Replace all calls to tor_log_update_sigsafe_err_fds() with
tor_log_update_safe_fds(). In future commits, tor_log_update_safe_fds()
will also update the control debug fds.

No behaviour change.

Preparation for 30901.
Split tor_log_update_sigsafe_err_fds() into a small function that sets
the signal-safe error log fds, and a helper function that searches for
those fds.

No behaviour change.

Preparation for 30901.
Elevate some constants from tor_log_update_safe_fds_helper() into
arguments, and pass the correct values from
tor_log_update_sigsafe_err_fds().

Document the signal-safe log behaviour in the tor man page.

No behaviour change.

Preparation for 30901.
Add tor_log_update_control_safe_debug_fds(), which creates a list of
control message trace debug log file descriptors.

Document the control message trace log behaviour in the tor man page.

Part of 30901.
Move SEVERITY_MASK_IDX() to log.h private/unit tests section, so that
we can use it in log.c and the unit tests.

Fixes bug 31334; bugfix on 0.2.5.2-alpha.
Put low-level raw logging functions in raw_log, and error-specific
logging functions in torerr.

No behaviour change.

Preparation for 30901.
teor2345 added 2 commits Aug 5, 2019
Logs control trace lines using lib/torerr/raw_log.[ch].
Also add unit tests for the new module.

Part of 30901.
@coveralls
Copy link

@coveralls coveralls commented Aug 5, 2019

Pull Request Test Coverage Report for Build 5700

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-62.8%) to 0.0%

Totals Coverage Status
Change from base Build 5693: -62.8%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

teor2345 added 5 commits Aug 5, 2019
* actually sleep when tor has not logged anything
* log at debug level when waiting for tor to log something
* backslash-replace bad UTF-8 characters in logs
* format control messages as ASCII: tor does not accept UTF-8 control commands

Found during 30901, needs bug number.
@teor2345
Copy link
Contributor Author

@teor2345 teor2345 commented Oct 2, 2019

Obsoleted by #1386.

@teor2345 teor2345 closed this Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment