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

Make logging level configurable without requiring recompilation #14

Open
rski opened this issue Feb 10, 2017 · 3 comments
Open

Make logging level configurable without requiring recompilation #14

rski opened this issue Feb 10, 2017 · 3 comments

Comments

@rski
Copy link
Contributor

rski commented Feb 10, 2017

or document if it is available via an rpc somewhere

@pguibert6WIND
Copy link
Contributor

could you please be more explicit about that.
you mean log messages from zrpc?

@rski
Copy link
Contributor Author

rski commented Feb 17, 2017

Ah sorry, I had this in my head but didn't write it down.

Here:
https://github.com/6WIND/zrpcd/blob/master/zrpcd/zrpc_debug.h#L19
#define IS_ZRPC_DEBUG (zrpc_debug & ZRPC_DEBUG)

ZRPC_DEBUG is true but it seems like zrpcd_debug is initialised to false and I can't figure out how to modify it using the constructs defined here

@pguibert6WIND
Copy link
Contributor

The logging level is set by default to on in function zrpc_debug_init().
To change the logging level, there is a thrift API called setLogConfig() that is handling the severity and where to dump the traces.
open to suggestions.

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