find {base,src,programs} -name '*.h' -or -name '*.cpp' | xargs grep -l -P 'LOG_\w+\([^,]+, [^<]+ << "[^"]+" << [^<]+\);' | xargs sed -i -r -e 's/(LOG_\w+)\(([^,]+), ([^<]+) << "([^"]+)" << ([^<]+)\);/\1_FORMATTED(\2, "{}\4{}", \3, \5);/'

This commit is contained in:
Alexey Milovidov 2020-05-23 20:14:57 +03:00
parent 57f6dc66d3
commit d6bc4d2bd0
2 changed files with 2 additions and 2 deletions

View File

@ -776,7 +776,7 @@ void InterpreterSelectQuery::executeImpl(TPipeline & pipeline, const BlockInputS
/** Read the data from Storage. from_stage - to what stage the request was completed in Storage. */
executeFetchColumns(from_stage, pipeline, expressions.prewhere_info, expressions.columns_to_remove_after_prewhere, save_context_and_storage);
LOG_TRACE(log, QueryProcessingStage::toString(from_stage) << " -> " << QueryProcessingStage::toString(options.to_stage));
LOG_TRACE_FORMATTED(log, "{} -> {}", QueryProcessingStage::toString(from_stage), QueryProcessingStage::toString(options.to_stage));
}
if (options.to_stage > QueryProcessingStage::FetchColumns)

View File

@ -244,7 +244,7 @@ void ReadBufferFromKafkaConsumer::resetToLastCommitted(const char * msg)
}
auto committed_offset = consumer->get_offsets_committed(consumer->get_assignment());
consumer->assign(committed_offset);
LOG_TRACE(log, msg << " Returned to committed position: " << committed_offset);
LOG_TRACE_FORMATTED(log, "{} Returned to committed position: {}", msg, committed_offset);
}
/// Do commit messages implicitly after we processed the previous batch.