If I can suggest something, don't use #ifdef DEBUG to enable debug log messages. In the future when a user reports some weird behavior it is easier to tell him something like "Hey, could you try it again with --log-level debug and send us the logs?", then to tell him to recompile the binary.
If I can suggest something, don't use #ifdef DEBUG to enable debug log messages. In the future when a user reports some weird behavior it is easier to tell him something like "Hey, could you try it again with --log-level debug and send us the logs?", then to tell him to recompile the binary.