Skip to content

Commit f762c71

Browse files
committed
remove empty format string handling in log limiters
1 parent e4cd16c commit f762c71

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/Common/LoggingFormatStringHelpers.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ std::mutex LogFrequencyLimiterImpl::mutex;
1616
void LogFrequencyLimiterImpl::log(Poco::Message & message)
1717
{
1818
std::string_view pattern = message.getFormatString();
19-
if (pattern.empty())
20-
{
21-
/// Do not filter messages without a format string
22-
if (auto * channel = logger->getChannel())
23-
channel->log(message);
24-
return;
25-
}
2619

2720
SipHash hash;
2821
hash.update(logger->name());
@@ -160,15 +153,6 @@ LogSeriesLimiter * LogSeriesLimiter::getChannel()
160153

161154
void LogSeriesLimiter::log(Poco::Message & message)
162155
{
163-
std::string_view pattern = message.getFormatString();
164-
if (pattern.empty())
165-
{
166-
/// Do not filter messages without a format string
167-
if (auto * channel = logger->getChannel())
168-
channel->log(message);
169-
return;
170-
}
171-
172156
if (!accepted)
173157
return;
174158

0 commit comments

Comments
 (0)