Commit c4881e2d56e3edd945705d2636e37479451518cb

Authored by Wesnydy Ribeiro
1 parent 038b1127
Exists in master and in 1 other branch devel

Ajustes no log de algumas classes

servico/src/serviceWindowGenerationFromRec.cpp
... ... @@ -66,7 +66,7 @@ void ServiceWindowGenerationFromRec::setPathContents(){
66 66 if(vStorage != NULL && vUploads != NULL){
67 67 this->path_contents = vStorage;
68 68 this->path_uploads = vUploads;
69   - PRINTL(util::_DEBUG, "Paths definidos pelo desenvolvedor:\n %s\n%s", path_contents, path_uploads);
  69 + PRINTL(util::_DEBUG, "Paths definidos pelo desenvolvedor:\n %s\n%s\n", path_contents, path_uploads);
70 70 }else{
71 71 this->path_contents = (char*) PATH_DEVEL_CONTENTS;
72 72 this->path_uploads = (char*) PATH_DEVEL_UPLOADS;
... ...
servico/src/serviceWindowGenerationFromSRT.cpp
... ... @@ -69,7 +69,7 @@ void ServiceWindowGenerationFromSRT::setPathContents() {
69 69 if(vStorage != NULL && vUploads != NULL){
70 70 this->path_contents = vStorage;
71 71 this->path_uploads = vUploads;
72   - PRINTL(util::_DEBUG, "Paths definidos pelo desenvolvedor:\n %s\n%s", path_contents, path_uploads);
  72 + PRINTL(util::_DEBUG, "Paths definidos pelo desenvolvedor:\n %s\n%s\n", path_contents, path_uploads);
73 73 }else{
74 74 this->path_contents = (char*) PATH_DEVEL_CONTENTS;
75 75 this->path_uploads = (char*) PATH_DEVEL_UPLOADS;
... ...
servico/src/serviceWindowGenerationFromText.cpp
... ... @@ -37,7 +37,7 @@ void ServiceWindowGenerationFromText::setPathContents() {
37 37 vStorage = getenv("VLSTORAGE");
38 38 if(vStorage != NULL){
39 39 this->path_contents = vStorage;
40   - PRINTL(util::_DEBUG, "Path definido pelo desenvolvedor:\n%s", path_contents);
  40 + PRINTL(util::_DEBUG, "Path definido pelo desenvolvedor:\n%s\n", path_contents);
41 41 }else{
42 42 this->path_contents = (char*) PATH_DEVEL_CONTENTS;
43 43 }
... ...
util/src/argParser.cpp
... ... @@ -33,7 +33,7 @@ void ArgParser::readArgs(char** argv, int argc)
33 33 {
34 34 case 'A':
35 35 if(argc < 9){
36   - printf("Insuficient arguments. Try again\n");
  36 + PRINTL(util::_ERROR, "Insuficient arguments. Try again\n");
37 37 throw lavidlib::RuntimeException();
38 38 }
39 39  
... ... @@ -43,7 +43,7 @@ void ArgParser::readArgs(char** argv, int argc)
43 43  
44 44 case 'S':
45 45 if(argc < 11 || (globalArgs.service == _REC_VIDEO && argc < 17)){
46   - printf("Insuficient arguments. Try again\n");
  46 + PRINTL(util::_ERROR, "Insuficient arguments. Try again\n");
47 47 throw lavidlib::RuntimeException();
48 48 }
49 49  
... ... @@ -58,7 +58,7 @@ void ArgParser::readArgs(char** argv, int argc)
58 58  
59 59 case 'T':
60 60 if(argc < 11){
61   - printf("Insuficient arguments. Try again\n");
  61 + PRINTL(util::_ERROR, "Insuficient arguments. Try again\n");
62 62 throw lavidlib::RuntimeException();
63 63 }
64 64  
... ... @@ -68,7 +68,7 @@ void ArgParser::readArgs(char** argv, int argc)
68 68  
69 69 case 'V':
70 70 if(argc < 13 || ((globalArgs.service == _ONLY_SRT && argc < 17))){
71   - printf("Insuficient arguments. Try again\n");
  71 + PRINTL(util::_ERROR, "Insuficient arguments. Try again\n");
72 72 throw lavidlib::RuntimeException();
73 73 }
74 74  
... ...
util/src/include/argParser.h
... ... @@ -13,6 +13,7 @@
13 13 #define MAX_SIZE_PATH 256
14 14  
15 15 using namespace std;
  16 +using namespace util;
16 17  
17 18 class ArgParser {
18 19 public:
... ...