File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ See [./examples/repeat.cpp](./examples/repeat.cpp)
2929
3030MIT, see [ ./LICENSE] ( ./LICENSE )
3131
32+ ## Debugging
33+
34+ To enable debug logging, set the ` MSGFLO_CPP_DEBUG ` environment variable.
35+
36+ export MSGFLO_CPP_DEBUG=1
37+
3238## TODO
3339
34400.1
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ int main(int argc, char **argv)
2929 if (argc >= 3 ) {
3030 config.url (argv[2 ]);
3131 }
32- config.debugOutput (true );
3332
3433 auto engine = msgflo::createEngine (config);
3534
Original file line number Diff line number Diff line change @@ -106,7 +106,8 @@ class Engine {
106106
107107class EngineConfig {
108108public:
109- EngineConfig () : _debugOutput(true ) {
109+ EngineConfig () : _debugOutput(false ) {
110+ _debugOutput = std::getenv (" MSGFLO_CPP_DEBUG" ) ? true : false ;
110111 }
111112
112113 void debugOutput (bool on) {
You can’t perform that action at this time.
0 commit comments