]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Default to file logging if a log type is not specified.
authorSadie Powell <sadie@witchery.services>
Thu, 20 May 2021 21:01:39 +0000 (22:01 +0100)
committerSadie Powell <sadie@witchery.services>
Thu, 20 May 2021 21:12:57 +0000 (22:12 +0100)
src/logger.cpp

index 5ebcf4b00d782f0b5903a38c1d092ca94413c017..f2df1c78d5ef9603779447b0e0ba9b5e970511c4 100644 (file)
@@ -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;