dbms: added message [#METR-9462]

This commit is contained in:
Pavel Kartavyy 2013-12-26 09:42:32 +00:00
parent 666ff5201f
commit e78d87d9f3

View File

@ -14,6 +14,8 @@
#include <DB/Core/ErrorCodes.h>
#include <DB/IO/ReadHelpers.h>
#include <Yandex/logger_useful.h>
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;
}