diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-08-07 15:25:46 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-08-07 15:25:46 +0200 |
commit | b76ba219d9327d668645e24bde60955fd1476000 (patch) | |
tree | 4d110818334833988d52eaf81f0a05ec90885ff4 /contrib | |
parent | Merge pull request #2149 (diff) | |
parent | mlog: fix crash accessing stale data when rotating logs (diff) | |
download | monero-b76ba219d9327d668645e24bde60955fd1476000.tar.xz |
Merge pull request #2189
335fc8ab mlog: fix crash accessing stale data when rotating logs (moneromooo-monero)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/src/mlog.cpp | 2 |
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()); }); |