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

Add a way to silence stderr logging #85

Open
spenczar opened this issue Jul 11, 2023 · 1 comment
Open

Add a way to silence stderr logging #85

spenczar opened this issue Jul 11, 2023 · 1 comment

Comments

@spenczar
Copy link
Contributor

I'm linking to ASSIST as a library. I have my own ways I'd like to handle errors and provide warnings to the user. It'd be nice if I could disable the fprintf(stderr, ...) calls in ASSIST, maybe with a -D flag during compilation or something.

I don't really feel that I need to be able to recover those messages in any way; just suppressing them is fine, especially if there are well-defined error codes, which is mostly the case throughout ASSIST.

@hannorein
Copy link
Collaborator

hannorein commented Jul 11, 2023

Fair enough. I don't think there's any harm done by adding a few #ifdefs. Doing anything more complicated seems like an overkill.

(Probably not what you want, but you won't see any errors after calling fclose(stderr). )

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

No branches or pull requests

2 participants