summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-03 03:39:22 +0200
committerbunnei <bunneidev@gmail.com>2018-07-03 03:45:48 +0200
commit76b475faf774a7a357bdc707e556c75f7975bc45 (patch)
treec1acee7b309a3ee7b405dece76a3389b700f6052 /src/common
parentAdd configurable logging backends (diff)
downloadyuzu-76b475faf774a7a357bdc707e556c75f7975bc45.tar
yuzu-76b475faf774a7a357bdc707e556c75f7975bc45.tar.gz
yuzu-76b475faf774a7a357bdc707e556c75f7975bc45.tar.bz2
yuzu-76b475faf774a7a357bdc707e556c75f7975bc45.tar.lz
yuzu-76b475faf774a7a357bdc707e556c75f7975bc45.tar.xz
yuzu-76b475faf774a7a357bdc707e556c75f7975bc45.tar.zst
yuzu-76b475faf774a7a357bdc707e556c75f7975bc45.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/logging/filter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/logging/filter.cpp b/src/common/logging/filter.cpp
index 733247b51..4e783a577 100644
--- a/src/common/logging/filter.cpp
+++ b/src/common/logging/filter.cpp
@@ -65,14 +65,14 @@ bool Filter::ParseFilterRule(const std::string::const_iterator begin,
const std::string::const_iterator end) {
auto level_separator = std::find(begin, end, ':');
if (level_separator == end) {
- LOG_ERROR(Log, "Invalid log filter. Must specify a log level after `:`: %s",
- std::string(begin, end).c_str());
+ LOG_ERROR(Log, "Invalid log filter. Must specify a log level after `:`: {}",
+ std::string(begin, end));
return false;
}
const Level level = GetLevelByName(level_separator + 1, end);
if (level == Level::Count) {
- LOG_ERROR(Log, "Unknown log level in filter: %s", std::string(begin, end).c_str());
+ LOG_ERROR(Log, "Unknown log level in filter: {}", std::string(begin, end));
return false;
}
@@ -83,7 +83,7 @@ bool Filter::ParseFilterRule(const std::string::const_iterator begin,
const Class log_class = GetClassByName(begin, level_separator);
if (log_class == Class::Count) {
- LOG_ERROR(Log, "Unknown log class in filter: %s", std::string(begin, end).c_str());
+ LOG_ERROR(Log, "Unknown log class in filter: {}", std::string(begin, end));
return false;
}