Add utils::InputFile wrapper

Reviewers: teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2377
This commit is contained in:
Matej Ferencevic
2019-09-12 14:49:45 +02:00
parent b74141aafe
commit 51fc4df87a
5 changed files with 339 additions and 59 deletions

View File

@@ -91,7 +91,8 @@ void Log::ReopenLog() {
if (!started_.load(std::memory_order_relaxed)) return;
std::lock_guard<std::mutex> guard(lock_);
if (log_.IsOpen()) log_.Close();
log_.Open(storage_directory_ / "audit.log");
log_.Open(storage_directory_ / "audit.log",
utils::OutputFile::Mode::APPEND_TO_EXISTING);
}
void Log::Flush() {