Commit e35adcc4 authored by oscar's avatar oscar

修改打开文件的方式为累加写入。

parent e5142c03
......@@ -73,9 +73,9 @@ int AddLogFileSys(const char* file, int& fileIdx)
std::string dir = name;
LOG(INFO) << "AddLogFileSys save file = " << dir;
#ifdef _WIN32
if (fopen_s(&g_file, dir.c_str(), "wt+") != 0)
if (fopen_s(&g_file, dir.c_str(), "at+") != 0)
#else
if (nullptr == (g_file = fopen(dir.c_str(), "wt+")))
if (nullptr == (g_file = fopen(dir.c_str(), "at+")))
#endif
{
g_file = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment