Compare commits
3 Commits
72b777dec3
...
76aa9a87c5
Author | SHA1 | Date |
---|---|---|
|
76aa9a87c5 | |
|
04eaed1d69 | |
|
6c2c125332 |
|
@ -207,3 +207,8 @@ void Log::setup(const QString &app,int level)
|
||||||
qInfo()<<"[LOG_PATH]"<<g_file_path;
|
qInfo()<<"[LOG_PATH]"<<g_file_path;
|
||||||
qInfo()<<"===================================================";
|
qInfo()<<"===================================================";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Log::teardown()
|
||||||
|
{
|
||||||
|
qInstallMessageHandler(0);
|
||||||
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ namespace Log
|
||||||
{
|
{
|
||||||
QString prettyProductInfoWrapper();
|
QString prettyProductInfoWrapper();
|
||||||
void setup(const QString &app,int level = 4);
|
void setup(const QString &app,int level = 4);
|
||||||
|
void teardown();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // LOG_H
|
#endif // LOG_H
|
||||||
|
|
|
@ -82,5 +82,6 @@ int main(int argc, char *argv[])
|
||||||
if (exec == 931) {
|
if (exec == 931) {
|
||||||
QProcess::startDetached(qApp->applicationFilePath(), QStringList());
|
QProcess::startDetached(qApp->applicationFilePath(), QStringList());
|
||||||
}
|
}
|
||||||
|
Log::teardown();
|
||||||
return exec;
|
return exec;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue