Skip to content
Permalink
Browse files

afcmd: on verbose mode, it outputs request message data

  • Loading branch information...
timurhai committed Jul 29, 2019
1 parent 2d845cc commit 1515fd04315b1dcad909bf664735c8d65a6347ee
Showing with 7 additions and 1 deletion.
  1. +7 −1 afanasy/src/cmd/main.cpp
@@ -56,7 +56,10 @@ printf("Msg::SizeDataMax = %d\n", Msg::SizeDataMax );
envflags = af::Environment::SolveServerName;

if( std::string( argv[1]) == "v" )
{
envflags |= af::Environment::Verbose;
Verbose = true;
}
else
envflags |= af::Environment::Quiet;
}
@@ -78,7 +81,10 @@ printf("Msg::SizeDataMax = %d\n", Msg::SizeDataMax );
{
if( msg.isNull() == false)
{
if( Verbose ) msg.v_stdOut();
if( Verbose )
{
msg.stdOutData();
}

bool ok;
af::Msg * answer = af::sendToServer( &msg, ok, af::VerboseOn);

0 comments on commit 1515fd0

Please sign in to comment.
You can’t perform that action at this time.