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

Prevent pushing data to server if no url is given #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

FlorianBT
Copy link

Also:
Prevent writing to file if no file path is given
Added a trace of the location where the dump file is saved on disk

We could talk about the design decision of implicitly using an url even if none is given (default value of http://localhost:8080/result). I prefer using default values resulting in the less possible implicit code. But this is by design, and it's a detail, to be honest. I followed the same design for the file path on disk (default being ./).

It prevents doErrorStuff() from writing to disk or sending data to server, depending on the values.

Also, being on mac, I couldn't find the log files, even though there was no error logged that could explain why the file creation aborted or failed. I added a trace with the full path. On mac it goes right into the application bundle.
APPNAME.app/Contents/Resources/log/errors/ (or something else after Resources if you set a custom path).

Prevent writing to file if no file path is given
Added a trace of the location where the dump file is saved on disk
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.

1 participant