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

Redesign the Tor settings screen #1245

Merged
merged 7 commits into from
Jun 24, 2021

Conversation

ben-kaufman
Copy link
Contributor

Redesign the Tor setup screen based on feedback from https://www.youtube.com/watch?v=Lq77qFFOBcE

@k9ert
Copy link
Collaborator

k9ert commented Jun 22, 2021

Just tested this and the The test_tor action assumes that the type of the connection is via-specter. However if it's custom this will throw an exception:

logger.error(app.specter.tor_daemon.get_logs())

I had my difficulties with getting the logs anyway so maybe try/except it inside the get_logs-function and return a reasonable text is the most resilient fix for this?

Also, if the internal tor-daemon is running, you shouldn't be able to switch to custom as the user is assuming that if he clicks "Test Tor", he's testing the custom implementation. But if the custom-implementation is "accidentally" pointing to the internal tor-installation, the test is still "sucessfull".

The Tor-logs are only obtainable when the log-daemon is not running. So i'd recommend to also dump the logs by default when you're stopping the daemon.

Hope that makes sense.

logger.error(app.specter.tor_daemon.get_logs())
if tor_type == "builtin":
logger.error("Tor-Logs:")
logger.error(app.specter.tor_daemon.get_logs())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work if tor is running properly. If it's not running properly, it's no wonder the test failed.
So maybe the best move here is stopping tor, getting the logs and start it again?!

@k9ert
Copy link
Collaborator

k9ert commented Jun 23, 2021

Can you also put logger.info("..") commands in front of each action to make the logs more expressive?

@ben-kaufman ben-kaufman merged commit 3e1c0a7 into cryptoadvance:master Jun 24, 2021
@ben-kaufman ben-kaufman deleted the tor-redesign branch June 24, 2021 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants