Merge pull request #10445 from azat/logger-source-coloring-client

Make logger name colored in client too
This commit is contained in:
alexey-milovidov 2020-04-23 00:35:40 +03:00 committed by GitHub
commit b8e3655f0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);