mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
RemoteBlockOutputSream: better logging
This commit is contained in:
parent
9c7ac77624
commit
4260d6bf24
@ -3,6 +3,7 @@
|
|||||||
#include <DB/DataStreams/IBlockOutputStream.h>
|
#include <DB/DataStreams/IBlockOutputStream.h>
|
||||||
|
|
||||||
#include <DB/Client/Connection.h>
|
#include <DB/Client/Connection.h>
|
||||||
|
#include <Yandex/logger_useful.h>
|
||||||
|
|
||||||
|
|
||||||
namespace DB
|
namespace DB
|
||||||
@ -54,6 +55,7 @@ public:
|
|||||||
message << "Block structure is different from table structure.\n"
|
message << "Block structure is different from table structure.\n"
|
||||||
<< "\nTable structure:\n(" << sample_block.dumpStructure() << ")\nBlock structure:\n(" << block.dumpStructure() << ")\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());
|
throw DB::Exception(message.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user