Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

cleos print contract log only one line #6448

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,9 @@ void print_action( const fc::variant& at ) {
if( console.size() ) {
std::stringstream ss(console);
string line;
std::getline( ss, line );
cout << ">> " << line << "\n";
while(std::getline( ss, line )){
cout << ">> " << line << "\n";
}
}
}

Expand Down Expand Up @@ -2354,8 +2355,9 @@ int main( int argc, char** argv ) {
stringstream out;
std::stringstream ss(console);
string line;
std::getline( ss, line );
out << ">> " << line << "\n";
while(std::getline( ss, line )){
out << ">> " << line << "\n";
}
cerr << out.str(); //ilog( "\r${m} ", ("m",out.str()) );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The printing of one line here and above was on purpose. If you want to add a command line option to enable full output that would be acceptable.

}
}
Expand Down