From 59c9b9dba44f451f9e3f03021a9b77510e190507 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 20 May 2021 22:01:39 +0100 Subject: Default to file logging if a log type is not specified. --- src/logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/logger.cpp b/src/logger.cpp index 5ebcf4b00..f2df1c78d 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -82,7 +82,7 @@ void LogManager::OpenFileLogs() for(ConfigIter i = tags.first; i != tags.second; ++i) { ConfigTag* tag = i->second; - std::string method = tag->getString("method"); + const std::string method = tag->getString("method", "file", 1); if (!stdalgo::string::equalsci(method, "file")) { continue; -- cgit v1.2.3