Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
familyMart_takeaway
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guanghui.cui
familyMart_takeaway
Commits
bdac79cb
Commit
bdac79cb
authored
Mar 09, 2018
by
guanghui.cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复日志备份时候崩溃的问题
parent
5985d6e1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/main.cpp
+3
-3
No files found.
src/main.cpp
View file @
bdac79cb
...
...
@@ -26,10 +26,9 @@ void logRolloutHandler(const char* filename, std::size_t size)
/// 备份日志
//std::string strLogPath = GetProcDir();
//strLogPath.append(filename);
std
::
cout
<<
"bk filename:"
<<
filename
<<
std
::
endl
;
std
::
stringstream
ss
;
ss
<<
"mv "
<<
filename
<<
" "
<<
filename
<<
"_bk"
;
LOG
(
INFO
)
<<
"备份日志:"
<<
ss
.
str
().
c_str
();
system
(
ss
.
str
().
c_str
());
}
...
...
@@ -279,7 +278,8 @@ int main()
LOG
(
INFO
)
<<
"recv ODS pushDate failed or timeout"
;
}
}
/// 注销回调函数
el
::
Helpers
::
uninstallPreRollOutCallback
();
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment