aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-08-07 15:25:46 +0200
committerRiccardo Spagni <ric@spagni.net>2017-08-07 15:25:46 +0200
commitb76ba219d9327d668645e24bde60955fd1476000 (patch)
tree4d110818334833988d52eaf81f0a05ec90885ff4
parentMerge pull request #2149 (diff)
parentmlog: fix crash accessing stale data when rotating logs (diff)
downloadmonero-b76ba219d9327d668645e24bde60955fd1476000.tar.xz
Merge pull request #2189
335fc8ab mlog: fix crash accessing stale data when rotating logs (moneromooo-monero)
-rw-r--r--contrib/epee/src/mlog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/src/mlog.cpp b/contrib/epee/src/mlog.cpp
index 39661a1a0..2ac3138f9 100644
--- a/contrib/epee/src/mlog.cpp
+++ b/contrib/epee/src/mlog.cpp
@@ -129,7 +129,7 @@ void mlog_configure(const std::string &filename_base, bool console)
el::Loggers::addFlag(el::LoggingFlag::DisableApplicationAbortOnFatalLog);
el::Loggers::addFlag(el::LoggingFlag::ColoredTerminalOutput);
el::Loggers::addFlag(el::LoggingFlag::StrictLogFileSizeCheck);
- el::Helpers::installPreRollOutCallback([&filename_base](const char *name, size_t){
+ el::Helpers::installPreRollOutCallback([filename_base](const char *name, size_t){
std::string rname = generate_log_filename(filename_base.c_str());
rename(name, rname.c_str());
});