Skip to content

Commit 573abcf

Browse files
pufitnikitamikhaylov
authored andcommitted
Better log
1 parent 4dd8525 commit 573abcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Access/Common/AccessRightsElement.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <Access/AccessControl.h>
22
#include <Access/Common/AccessRightsElement.h>
3+
#include <Common/logger_useful.h>
34
#include <Common/quoteString.h>
45
#include <IO/Operators.h>
56
#include <IO/WriteBufferFromString.h>
@@ -154,7 +155,7 @@ void AccessRightsElement::formatONClause(WriteBuffer & buffer, bool hilite) cons
154155
&& !access_control.isEnabledUserNameAccessType())
155156
{
156157
if (!anyParameter())
157-
getLogger("AccessRightsElement")->warning(
158+
LOG_WARNING(getLogger("AccessRightsElement"),
158159
"Converting {} to *.* because the setting `enable_user_name_access_type` is `false`. "
159160
"Consider turning this setting on, if your cluster contains no replicas older than 25.1",
160161
parameter);

0 commit comments

Comments
 (0)