From 0a99f79e0d90f0d1c0836fbef124bfe269677840 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 13 Jun 2008 17:36:23 +0000 Subject: Fix for broker wraparound problem. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@667603 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/log/Logger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/log/Logger.cpp') diff --git a/cpp/src/qpid/log/Logger.cpp b/cpp/src/qpid/log/Logger.cpp index 84096f7e58..30cec2f0f7 100644 --- a/cpp/src/qpid/log/Logger.cpp +++ b/cpp/src/qpid/log/Logger.cpp @@ -48,7 +48,8 @@ struct OstreamOutput : public Logger::Output { OstreamOutput(std::ostream& o) : out(&o) {} OstreamOutput(const string& file) - : out(new ofstream(file.c_str())), mine(out) + : out(new ofstream(file.c_str(), ios_base::out | ios_base::app)), + mine(out) { if (!out->good()) throw std::runtime_error("Can't open log file: "+file); -- cgit v1.2.1