Allow disabling logs by redefining ggprintf macro
petrdvorak opened this issue · 2 comments
petrdvorak commented
Currently, the code in ggwave.cpp
is always logging. Sometimes (especially in production builds), this could be undesired. It would be nice to disable logging, i.e., based on additional environment variable or in case DEBUG is not defined.
ggerganov commented
You can disable ggwave logging by calling the ggwave_setLogFile()
function. Here is an example how to use it:
petrdvorak commented
Thank you, I will have a look. The issue of this approach, though, is that logging is configured at runtime. With macro definition, the logging code is rmeoved at compile time.