After reading \"What’s your/a good limit for cyclomatic complexity?\", I realize many of my colleagues were quite annoyed with this new QA policy on our project: no more 10
In C or C++ I'd use the preprocessor instead of the if statements for the conditional logging.