diff --git a/dbms/include/DB/Interpreters/Users.h b/dbms/include/DB/Interpreters/Users.h index 31103483b80..5feb032df55 100644 --- a/dbms/include/DB/Interpreters/Users.h +++ b/dbms/include/DB/Interpreters/Users.h @@ -14,6 +14,8 @@ #include #include +#include + namespace DB { @@ -208,8 +210,13 @@ public: } catch (const DB::Exception & e) { + LOG_WARNING(&Poco::Util::Application::instance().logger(), + "Fail to check if pattern contains address " << addr.toString() << ". e.message = "<< e.message() << + ", e.code = " << e.code()); if (e.code() == ErrorCodes::DNS_ERROR) + { continue; + } else throw; }