From ad2b627c0e7c47f914dd8562cde260c1cbacf2b7 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Sun, 5 Mar 2017 17:28:06 -0500 Subject: [PATCH] Fix LogFactory to actually use the presented values --- src/engine/logfactory.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/engine/logfactory.cpp b/src/engine/logfactory.cpp index bdc7d0498a..cddfd946b2 100644 --- a/src/engine/logfactory.cpp +++ b/src/engine/logfactory.cpp @@ -130,27 +130,27 @@ std::unique_ptr createLog(const ghoul::Dictionary& dictiona // the rest are optional bool append = true; if (dictionary.hasKeyAndValue(keyAppend)) { - dictionary.value(keyAppend); + append = dictionary.value(keyAppend); } bool timeStamp = true; if (dictionary.hasKeyAndValue(keyTimeStamping)) { - dictionary.value(keyTimeStamping); + timeStamp = dictionary.value(keyTimeStamping); } bool dateStamp = true; if (dictionary.hasKeyAndValue(keyDateStamping)) { - dictionary.value(keyDateStamping); + dateStamp = dictionary.value(keyDateStamping); } bool categoryStamp = true; if (dictionary.hasKeyAndValue(keyCategoryStamping)) { - dictionary.value(keyCategoryStamping); + categoryStamp = dictionary.value(keyCategoryStamping); } bool logLevelStamp = true; if (dictionary.hasKeyAndValue(keyLogLevelStamping)) { - dictionary.value(keyLogLevelStamping); + logLevelStamp = dictionary.value(keyLogLevelStamping); } std::string logLevel; if (dictionary.hasKeyAndValue(keyLogLevel)) { - dictionary.value(keyLogLevel); + logLevel = dictionary.value(keyLogLevel); }