Fixed missing usages of new output format.

This commit is contained in:
2016-11-24 03:36:14 +01:00
parent e2a450daa6
commit c760edb141
3 changed files with 5 additions and 3 deletions

View File

@@ -32,7 +32,8 @@ void translate(const std::vector<std::string> &fileNames, Context &context)
void translate(const char *fileName, std::istream &stream, Context &context)
{
std::cout << "info: reading " << fileName << std::endl;
// TODO: refactor
context.logger.log(output::Priority::Note, (std::string("reading ") + fileName).c_str());
auto fileContent = std::string(std::istreambuf_iterator<char>(stream), {});