Skip to content

Log error messages with a callback instead of file #188

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

Merged
merged 8 commits into from
Jun 16, 2018
Merged

Log error messages with a callback instead of file #188

merged 8 commits into from
Jun 16, 2018

Conversation

leouieda
Copy link
Member

@leouieda leouieda commented Jun 16, 2018

Use a callback function passed to GMT_Create_Session to log error
messages instead of redirecting them to a file using
GMT_Handle_Messages. It's a lot cleaner and the code is more legible.
Other functions don't need to do anything to have their errors logged,
it's automatic.
The logged messaged are also printed to stderr so they will show up in
the Jupyter notebook.
This is useful when using the verbose mode (V="d") in modules.

Switch to the Fatiando a Terra CI scripts and enable OSX testing on
Travis to check if the Segfault in #164 is resolved.
Fatiando provides scripts for handling all of the CI tasks we need:
https://github.com/fatiando/continuous-integration
Use them instead of rewriting everything.

leouieda added 8 commits June 15, 2018 16:48
Use a callback function passed to `GMT_Create_Session` to log error
messages instead of redirecting them to a file using
`GMT_Handle_Messages`. It's a lot cleaner and the code is more legible.
Other functions don't need to do anything to have their errors logged,
it's automatic.
The logged messaged are also printed to stderr so they will show up in
the Jupyter notebook.
This is useful when using the verbose mode (`V="d"`) in modules.
@leouieda leouieda merged commit 3daf293 into master Jun 16, 2018
@leouieda leouieda deleted the loggin branch June 16, 2018 04:34
leouieda pushed a commit that referenced this pull request Jun 21, 2018
`ci` directory was removed in #188. Remove `ci` in `setup.py` 
and `.codeclimate.yml`.
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