Added Utils::error() and Utils::info() to print to stderr/stdout instead of qDebug()

This commit is contained in:
2019-04-10 18:57:27 +02:00
parent 071bddf28d
commit 6ba1147d11
7 changed files with 48 additions and 20 deletions

View File

@@ -15,6 +15,7 @@
#include "encodingdetector.h"
#include "pdfprocessor.h"
#include "defaulttextprocessor.h"
#include "utils.h"
#include "command.h"
#include "commandadd.h"
#include "commanddelete.h"
@@ -64,12 +65,12 @@ int main(int argc, char *argv[])
}
catch(const QSSGeneralException &e)
{
qDebug() << "Exception caught, message: " << e.message;
Utils::error() << "Exception caught, message: " << e.message << endl;
}
}
else
{
qDebug() << "Unknown command " << commandName;
Utils::error() << "Unknown command " << commandName << endl;
}
return 1;
}