mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Merge pull request #10445 from azat/logger-source-coloring-client
Make logger name colored in client too
This commit is contained in:
commit
b8e3655f0d
@ -88,7 +88,11 @@ void InternalTextLogsRowOutputStream::write(const Block & block)
|
||||
writeCString("> ", wb);
|
||||
|
||||
auto source = column_source.getDataAt(row_num);
|
||||
writeString(source, wb);
|
||||
if (color)
|
||||
writeString(setColor(StringRefHash()(source)), wb);
|
||||
DB::writeString(source, wb);
|
||||
if (color)
|
||||
writeCString(resetColor(), wb);
|
||||
writeCString(": ", wb);
|
||||
|
||||
auto text = column_text.getDataAt(row_num);
|
||||
|
Loading…
Reference in New Issue
Block a user