[win-linux] updatesvc: move log entry to temporary folder

This commit is contained in:
SimplestStudio
2025-06-16 17:21:53 +03:00
parent c0801bea69
commit c3754fe39a
2 changed files with 2 additions and 2 deletions

View File

@ -608,7 +608,7 @@ namespace NS_Logger
void WriteLog(const string &log, bool showMessage)
{
if (allow_write_log) {
string filpPath(NS_File::appPath() + "/service_log.txt");
string filpPath(NS_File::tempPath() + "/oo_service_log.txt");
std::ofstream file(filpPath.c_str(), std::ios::app);
if (!file.is_open()) {
return;

View File

@ -718,7 +718,7 @@ namespace NS_Logger
void WriteLog(const wstring &log, bool showMessage)
{
if (allow_write_log) {
wstring filpPath(NS_File::appPath() + L"/service_log.txt");
wstring filpPath(NS_File::tempPath() + L"/oo_service_log.txt");
std::wofstream file(filpPath.c_str(), std::ios::app);
if (!file.is_open()) {
return;