mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-02-10 18:05:16 +08:00
[win-linux] updatesvc: move log entry to temporary folder
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user