summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/log/posix/SinkOptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/log/posix/SinkOptions.cpp')
-rw-r--r--cpp/src/qpid/log/posix/SinkOptions.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/log/posix/SinkOptions.cpp b/cpp/src/qpid/log/posix/SinkOptions.cpp
index 8459938e5c..d3db5f3cdf 100644
--- a/cpp/src/qpid/log/posix/SinkOptions.cpp
+++ b/cpp/src/qpid/log/posix/SinkOptions.cpp
@@ -22,11 +22,14 @@
#include "qpid/log/OstreamOutput.h"
#include "qpid/memory.h"
#include "qpid/Exception.h"
+
#include <iostream>
#include <map>
#include <string>
#include <syslog.h>
+#include <boost/lexical_cast.hpp>
+
using std::string;
using qpid::Exception;
@@ -90,7 +93,7 @@ public:
string name(int value) const {
ByValue::const_iterator i = byValue.find(value);
if (i == byValue.end())
- throw Exception("Not a valid syslog value: " + value);
+ throw Exception("Not a valid syslog value: " + boost::lexical_cast<string>(value));
return i->second;
}