This commit is contained in:
朱子楚\zhuzi
2024-03-03 01:14:54 +08:00
parent 07de3b82b1
commit 644a0e509f
7 changed files with 424 additions and 319 deletions

View File

@ -207,8 +207,3 @@ void Log::setup(const QString &app,int level)
qInfo()<<"[LOG_PATH]"<<g_file_path;
qInfo()<<"===================================================";
}
void Log::teardown()
{
qInstallMessageHandler(0);
}

View File

@ -6,7 +6,6 @@ namespace Log
{
QString prettyProductInfoWrapper();
void setup(const QString &app,int level = 4);
void teardown();
}
#endif // LOG_H

View File

@ -82,6 +82,5 @@ int main(int argc, char *argv[])
if (exec == 931) {
QProcess::startDetached(qApp->applicationFilePath(), QStringList());
}
Log::teardown();
return exec;
}