aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-11 19:12:14 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-11 19:12:14 +0200
commite96b67d1d324411c11387bb3029d602ef6e492a2 (patch)
tree5671b4a6d91cbf424f1b7a88cc8820b2e57af6b4 /src
parente74146132c62818907dfd4801f5ab68db9eb3f09 (diff)
downloaddabmux-e96b67d1d324411c11387bb3029d602ef6e492a2.tar.gz
dabmux-e96b67d1d324411c11387bb3029d602ef6e492a2.tar.bz2
dabmux-e96b67d1d324411c11387bb3029d602ef6e492a2.zip
Fix syslog option
The syslog option had to be used with 0 or 1, instead of true/false
Diffstat (limited to 'src')
-rw-r--r--src/ParserConfigfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ParserConfigfile.cpp b/src/ParserConfigfile.cpp
index f515a5c..1302c11 100644
--- a/src/ParserConfigfile.cpp
+++ b/src/ParserConfigfile.cpp
@@ -159,7 +159,7 @@ void parse_configfile(string configuration_file,
*limit = pt_general.get("nbframes", 0);
/* Enable Logging to syslog conditionally */
- if (pt_general.get("syslog", 0)) {
+ if (pt_general.get<bool>("syslog", false)) {
etiLog.register_backend(new LogToSyslog()); // TODO don't leak the LogToSyslog backend
}