summaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli (think) <matthias@mpb.li>2012-08-15 17:06:44 +0200
committerMatthias P. Braendli (think) <matthias@mpb.li>2012-08-15 17:06:44 +0200
commit52e36228e7b89de07af15a5029ac2655d5d55dfa (patch)
tree5ac712b32197f9b904fa091b785fa5aeeaea3939 /src/DabMod.cpp
parent6603a0b62b22cefbc1ceed00739230e6ccc4a8d9 (diff)
downloaddabmod-52e36228e7b89de07af15a5029ac2655d5d55dfa.tar.gz
dabmod-52e36228e7b89de07af15a5029ac2655d5d55dfa.tar.bz2
dabmod-52e36228e7b89de07af15a5029ac2655d5d55dfa.zip
crc-dabmod: file log corrections
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index 0d899d1..d3cc877 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -313,16 +313,18 @@ int main(int argc, char* argv[])
}
if (pt.get("log.filelog", 0) == 1) {
+ std::string logfilename;
try {
- std::string logfilename = pt.get<std::string>("fileoutput.filename");
- LogToFile* log_file = new LogToFile(logfilename);
- logger.register_backend(log_file);
+ logfilename = pt.get<std::string>("log.filename");
}
catch (std::exception &e) {
std::cerr << "Error: " << e.what() << "\n";
std::cerr << " Configuration enables file log, but does not specify log filename\n";
goto END_MAIN;
}
+
+ LogToFile* log_file = new LogToFile(logfilename);
+ logger.register_backend(log_file);
}