diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-07-22 10:46:45 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-07-22 19:15:44 +0100 |
commit | 335fc8ab23d506d2d895c47526065d2fc66ea55e (patch) | |
tree | 3f05fcd5b73b599231be580a498a7415b5a750db /contrib/epee | |
parent | Merge pull request #2159 (diff) | |
download | monero-335fc8ab23d506d2d895c47526065d2fc66ea55e.tar.xz |
mlog: fix crash accessing stale data when rotating logs
Diffstat (limited to 'contrib/epee')
-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 a51654d36..a3f38e677 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()); }); |