aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/Foundation/src
diff options
context:
space:
mode:
authordakovalkov <dakovalkov@yandex-team.ru>2022-02-10 16:47:57 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:57 +0300
commit397f301c06c5151db26f37c548b97e3f30dcceea (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /contrib/libs/poco/Foundation/src
parentb1375e869a0058e8f583ffd2c09d284203db1c2a (diff)
downloadydb-397f301c06c5151db26f37c548b97e3f30dcceea.tar.gz
Restoring authorship annotation for <dakovalkov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/poco/Foundation/src')
-rw-r--r--contrib/libs/poco/Foundation/src/ConsoleChannel.cpp18
-rw-r--r--contrib/libs/poco/Foundation/src/LogStream.cpp26
-rw-r--r--contrib/libs/poco/Foundation/src/Logger.cpp6
-rw-r--r--contrib/libs/poco/Foundation/src/PatternFormatter.cpp6
-rw-r--r--contrib/libs/poco/Foundation/src/SyslogChannel.cpp2
5 files changed, 29 insertions, 29 deletions
diff --git a/contrib/libs/poco/Foundation/src/ConsoleChannel.cpp b/contrib/libs/poco/Foundation/src/ConsoleChannel.cpp
index 55084896bd..056e3fa4be 100644
--- a/contrib/libs/poco/Foundation/src/ConsoleChannel.cpp
+++ b/contrib/libs/poco/Foundation/src/ConsoleChannel.cpp
@@ -105,10 +105,10 @@ void ColorConsoleChannel::setProperty(const std::string& name, const std::string
{
_enableColors = icompare(value, "true") == 0;
}
- else if (name == "testColor")
- {
- _colors[Message::PRIO_TEST] = parseColor(value);
- }
+ else if (name == "testColor")
+ {
+ _colors[Message::PRIO_TEST] = parseColor(value);
+ }
else if (name == "traceColor")
{
_colors[Message::PRIO_TRACE] = parseColor(value);
@@ -154,10 +154,10 @@ std::string ColorConsoleChannel::getProperty(const std::string& name) const
{
return _enableColors ? "true" : "false";
}
- else if (name == "testColor")
- {
- return formatColor(_colors[Message::PRIO_TEST]);
- }
+ else if (name == "testColor")
+ {
+ return formatColor(_colors[Message::PRIO_TEST]);
+ }
else if (name == "traceColor")
{
return formatColor(_colors[Message::PRIO_TRACE]);
@@ -274,7 +274,7 @@ void ColorConsoleChannel::initColors()
_colors[Message::PRIO_INFORMATION] = CC_DEFAULT;
_colors[Message::PRIO_DEBUG] = CC_GRAY;
_colors[Message::PRIO_TRACE] = CC_GRAY;
- _colors[Message::PRIO_TEST] = CC_GRAY;
+ _colors[Message::PRIO_TEST] = CC_GRAY;
}
diff --git a/contrib/libs/poco/Foundation/src/LogStream.cpp b/contrib/libs/poco/Foundation/src/LogStream.cpp
index 9c0e8844e4..5377beb9d0 100644
--- a/contrib/libs/poco/Foundation/src/LogStream.cpp
+++ b/contrib/libs/poco/Foundation/src/LogStream.cpp
@@ -208,19 +208,19 @@ LogStream& LogStream::trace(const std::string& message)
}
-LogStream& LogStream::test()
-{
- return priority(Message::PRIO_TEST);
-}
-
-
-LogStream& LogStream::test(const std::string& message)
-{
- _buf.logger().test(message);
- return priority(Message::PRIO_TEST);
-}
-
-
+LogStream& LogStream::test()
+{
+ return priority(Message::PRIO_TEST);
+}
+
+
+LogStream& LogStream::test(const std::string& message)
+{
+ _buf.logger().test(message);
+ return priority(Message::PRIO_TEST);
+}
+
+
LogStream& LogStream::priority(Message::Priority messagePriority)
{
_buf.setPriority(messagePriority);
diff --git a/contrib/libs/poco/Foundation/src/Logger.cpp b/contrib/libs/poco/Foundation/src/Logger.cpp
index 96adb5cee5..741dac5f19 100644
--- a/contrib/libs/poco/Foundation/src/Logger.cpp
+++ b/contrib/libs/poco/Foundation/src/Logger.cpp
@@ -430,14 +430,14 @@ int Logger::parseLevel(const std::string& level)
return Message::PRIO_DEBUG;
else if (icompare(level, "trace") == 0)
return Message::PRIO_TRACE;
- else if (icompare(level, "test") == 0)
- return Message::PRIO_TEST;
+ else if (icompare(level, "test") == 0)
+ return Message::PRIO_TEST;
else
{
int numLevel;
if (Poco::NumberParser::tryParse(level, numLevel))
{
- if (numLevel > 0 && numLevel < 10)
+ if (numLevel > 0 && numLevel < 10)
return numLevel;
else
throw InvalidArgumentException("Log level out of range ", level);
diff --git a/contrib/libs/poco/Foundation/src/PatternFormatter.cpp b/contrib/libs/poco/Foundation/src/PatternFormatter.cpp
index 1b7986e19d..728c389aa0 100644
--- a/contrib/libs/poco/Foundation/src/PatternFormatter.cpp
+++ b/contrib/libs/poco/Foundation/src/PatternFormatter.cpp
@@ -231,15 +231,15 @@ namespace
"Notice",
"Information",
"Debug",
- "Trace",
- "Test"
+ "Trace",
+ "Test"
};
}
const std::string& PatternFormatter::getPriorityName(int prio)
{
- poco_assert (1 <= prio && prio <= 9);
+ poco_assert (1 <= prio && prio <= 9);
return priorities[prio];
}
diff --git a/contrib/libs/poco/Foundation/src/SyslogChannel.cpp b/contrib/libs/poco/Foundation/src/SyslogChannel.cpp
index 8e00236275..c3d3c15f92 100644
--- a/contrib/libs/poco/Foundation/src/SyslogChannel.cpp
+++ b/contrib/libs/poco/Foundation/src/SyslogChannel.cpp
@@ -232,7 +232,7 @@ int SyslogChannel::getPrio(const Message& msg)
{
switch (msg.getPriority())
{
- case Message::PRIO_TEST:
+ case Message::PRIO_TEST:
case Message::PRIO_TRACE:
case Message::PRIO_DEBUG:
return LOG_DEBUG;