From d4e0ae9441cf3eaff8fce3519b334877c5a317a9 Mon Sep 17 00:00:00 2001 From: Klaus Iglberger Date: Thu, 5 Jun 2014 20:56:37 +0200 Subject: [PATCH] Fix an error in the 'Logger::openLogFile' member function --- src/util/logging/Logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/logging/Logger.cpp b/src/util/logging/Logger.cpp index a12eab06..f90a0121 100644 --- a/src/util/logging/Logger.cpp +++ b/src/util/logging/Logger.cpp @@ -172,7 +172,7 @@ void Logger::openLogFile() log_.open( filename.str().c_str(), std::ofstream::out | std::ofstream::trunc ); if( !log_.is_open() ) { std::ostringstream oss; - oss << " Error opening log file '" << filename << "' !\n"; + oss << " Error opening log file '" << filename.str() << "' !\n"; throw std::runtime_error( oss.str() ); }