RemoteBlockOutputSream: better logging

This commit is contained in:
Pavel Kartavyy 2014-07-04 15:21:53 +04:00
parent 9c7ac77624
commit 4260d6bf24

View File

@ -3,6 +3,7 @@
#include <DB/DataStreams/IBlockOutputStream.h>
#include <DB/Client/Connection.h>
#include <Yandex/logger_useful.h>
namespace DB
@ -54,6 +55,7 @@ public:
message << "Block structure is different from table structure.\n"
<< "\nTable structure:\n(" << sample_block.dumpStructure() << ")\nBlock structure:\n(" << block.dumpStructure() << ")\n";
LOG_ERROR(&Logger::get("RemoteBlockOutputStream"), message.str());
throw DB::Exception(message.str());
}