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

assorted problems with error/debug handling #58

Open
vsouvan opened this issue Apr 19, 2020 · 2 comments
Open

assorted problems with error/debug handling #58

vsouvan opened this issue Apr 19, 2020 · 2 comments

Comments

@vsouvan
Copy link
Collaborator

vsouvan commented Apr 19, 2020

Trying to embed LibECBUFR in various programs can be a bit tricky. First, it has a default "write to stdout" for various kinds of messages. This really sucks if stdout is being used for other things like a web page.

Second, there's no concept of error classification (i.e. warning, error, etc).


Imported from Launchpad using lp2gh.

@vsouvan
Copy link
Collaborator Author

vsouvan commented Apr 19, 2020

(by chris-beauregard)
The error classification stuff is harder to do since it really requires a whole new output/tracing approach. The "write to stdout" is just a matter of adding output and debug callback handlers (like abort).

@vsouvan
Copy link
Collaborator Author

vsouvan commented Apr 19, 2020

(by chris-beauregard)
Output issues fixed by r165. Error classification logic would be a whole other level of complicated and require revamping just about every message. I'd suggest looking into an external logging/tracing library before tackling that (i.e. nana, libdebug, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant