Enable verbose logging in signal-cli if log level is debug#808
Conversation
If the log level is `debug` (either with the `LOG_LEVEL` environment variable or configuration option), enable verbose logging in `signal-cli`.
|
Thanks for the PR! The problem I see here is, that the additional output that is returned breaks actual REST API endpoint. So, while additional debug info is logged, the actual REST API endpoint might not return any data anymore (as the data can't be parsed anymore). |
|
Good point. Could this be added to JSON RPC mode (maybe with a separate environment variable)? Again, feel free reject if this isn't desired. |
|
I think in
So, I guess what would work is:
Since we are logging into a file then, I think that should then also for the Would that be fine for your use case? |
|
I'll check on that and get back to you.
|
Feel free to reject if this isn't desired.
If the log level is
debug(either with theLOG_LEVELenvironment variable or configuration option), enable verbose logging insignal-cli.I thought it'd be useful to enable verbose logging in
signal-cli. This does that automatically.