Switch log level control from runtime to compile time

This commit is contained in:
Adam Gu
2018-06-07 10:18:26 +08:00
parent 1c861c8f5d
commit 21c20b075f
11 changed files with 83 additions and 37 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
#include "calc_client.h"
int main() {
LOG_INIT(webcc::VERB, 0);
LOG_INIT(0);
CalcClient calc;
+1 -1
View File
@@ -17,7 +17,7 @@ int main(int argc, char* argv[]) {
return 1;
}
LOG_INIT(webcc::INFO, 0);
LOG_INIT(0);
unsigned short port = std::atoi(argv[1]);