From 995de2735df757b9a36e41c61dcc303a9fb46f58 Mon Sep 17 00:00:00 2001 From: Wesnydy Ribeiro Date: Fri, 28 Aug 2015 17:30:34 -0300 Subject: [PATCH] Pequenas correções e atualização do makefile --- Makefile | 1 - util/src/argParser.cpp | 3 ++- util/src/include/logging.h | 2 +- util/src/logging.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 76f7044..fac0efc 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,6 @@ INCLUDES= \ utilObjs= \ argParser.o \ logging.o \ - logger.o tradutorObjs = \ pyTradutor.o \ diff --git a/util/src/argParser.cpp b/util/src/argParser.cpp index fff0fb8..23df643 100644 --- a/util/src/argParser.cpp +++ b/util/src/argParser.cpp @@ -156,7 +156,8 @@ void ArgParser::help() << "\n\t-r, --resolution [small,medium,large]" << "\n\t-p, --position [top_left,top_right,bottom_left,bottom_right]" << "\n\t-m, --mode [devel,prod]" - << "\n\t--id [name] Relative to the unique ID on the Database." + << "\n\t-v, --loglevel [quiet,error,warning,info,debug]" + << "\n\t--id [name] Relative to the unique ID on the Database." << "\n\t--no-mixer Disables mixing with the original video." << "\n\nSee man vlibras for detailed descriptions." << std::endl; diff --git a/util/src/include/logging.h b/util/src/include/logging.h index 37fd564..817dd73 100644 --- a/util/src/include/logging.h +++ b/util/src/include/logging.h @@ -15,7 +15,7 @@ namespace util { - enum logLevel { _QUIET , _ERROR, _WARNING, _INFO, _DEBUG}; + enum logLevel { _QUIET = 1 , _ERROR, _WARNING, _INFO, _DEBUG}; class Logging { public: diff --git a/util/src/logging.cpp b/util/src/logging.cpp index 5fcbd49..255b193 100644 --- a/util/src/logging.cpp +++ b/util/src/logging.cpp @@ -16,7 +16,7 @@ namespace util { } void Logging::setLevel(logLevel level) { - if(level != NULL) + if(level != 0) this->l_level = level; } -- libgit2 0.21.2