From 3621d57a95b858236921d8a9a22fb7568e451dc7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 23 Nov 2014 22:01:27 +0000 Subject: Fix compile errors introduced by previous commit. Add a LogFileOverwrite option to allow configuring whether LogFile is overwritten or appended to. Overwriting happens at startup, and the start of each backup in bbackupd (via ResetLogFile()). --- bin/bbackupquery/bbackupquery.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/bbackupquery') diff --git a/bin/bbackupquery/bbackupquery.cpp b/bin/bbackupquery/bbackupquery.cpp index 62315b12..e10c48fe 100644 --- a/bin/bbackupquery/bbackupquery.cpp +++ b/bin/bbackupquery/bbackupquery.cpp @@ -309,7 +309,8 @@ int main(int argc, const char *argv[]) std::auto_ptr fileLogger; if (fileLogLevel != Log::INVALID) { - fileLogger.reset(new FileLogger(fileLogFile, fileLogLevel)); + fileLogger.reset(new FileLogger(fileLogFile, fileLogLevel, + true)); // open in append mode } BOX_NOTICE(BANNER_TEXT("Backup Query Tool")); -- cgit v1.2.3