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

Don't require a log file in order to be able to connect. #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pulquero
Copy link

If createLogFile() returns null, then the 'let' clause is never executed making it impossible to connect. Instead of returning null, return an outputstream that just discards everything.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@CrazyDude1994
Copy link
Owner

Hi sorry for late answer. The reason why I didn't merged this change, is because I'm not sure about it. I think it's better to find out the reason why createLogFile() func sometimes return null and try to fix that. Because otherwise user would think the log is being record, while in reality it isn't

@pulquero
Copy link
Author

Forgot to mention, it returned null because I didn't config a log file name.

@CapnBry
Copy link

CapnBry commented Oct 17, 2021

Aha! So that's what my problem is. I could not figure out why when I click connect and select the device, nothing would happen and I had to "Clear Data" on android to get it to work again. If I turn on logging, it goes through connecting... and connects. If I have logging off, then it just goes right back to being disconnected immediately.

So the logging is really mandatory currently, since you can't connect if there is no log file.

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.

3 participants