Use fmtlib for output message
This commit is contained in:
parent
0dd522a105
commit
c045891c4c
@ -924,13 +924,9 @@ bool parseState( ParserState& parserState, const Parser& parser ) {
|
|||||||
const auto& kwname = rawKeyword->getKeywordName();
|
const auto& kwname = rawKeyword->getKeywordName();
|
||||||
const auto& parserKeyword = parser.getParserKeywordFromDeckName( kwname );
|
const auto& parserKeyword = parser.getParserKeywordFromDeckName( kwname );
|
||||||
{
|
{
|
||||||
std::stringstream ss;
|
|
||||||
|
|
||||||
const auto& location = rawKeyword->location();
|
const auto& location = rawKeyword->location();
|
||||||
ss << std::setw(5) << parserState.deck.size()
|
auto msg = fmt::format("{:5} Reading {:<8} in {} line {}", parserState.deck.size(), rawKeyword->getKeywordName(), location.filename, location.lineno);
|
||||||
<< " Reading " << std::setw(8) << std::left << rawKeyword->getKeywordName()
|
OpmLog::info(msg);
|
||||||
<< " in " << location.filename << " line " << std::to_string(location.lineno);
|
|
||||||
OpmLog::info(ss.str());
|
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (rawKeyword->getKeywordName() == Opm::RawConsts::pyinput) {
|
if (rawKeyword->getKeywordName() == Opm::RawConsts::pyinput) {
|
||||||
|
Loading…
Reference in New Issue
Block a user