Added Utils::error() and Utils::info() to print to stderr/stdout instead of qDebug()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user