diff options
author | Sadie Powell <sadie@witchery.services> | 2021-05-20 22:01:39 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-05-20 22:12:57 +0100 |
commit | 59c9b9dba44f451f9e3f03021a9b77510e190507 (patch) | |
tree | e08f8e8fd70245aa7646e3d752df3dc3ef798f80 /src | |
parent | dd930143a15ce7429527f0afd52b01bc31e9ed12 (diff) |
Default to file logging if a log type is not specified.
Diffstat (limited to 'src')
-rw-r--r-- | src/logger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |