Skip to content

Commit

Permalink
Add more logging to test/basicserver for FreeBSD timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
qris committed Jan 22, 2018
1 parent c12f691 commit 2bfbf29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/basicserver/testbasicserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,10 @@ int test(int argc, const char *argv[])
// Timing information is very useful for debugging race conditions during this test,
// so enable it unconditionally:
Console::SetShowTime(true);
if(Logging::GetConsole().GetLevel() < Log::INFO)
{
Logging::FilterConsole(Log::INFO);
}

// Server launching stuff
if(argc >= 2)
Expand Down Expand Up @@ -858,6 +862,8 @@ int test(int argc, const char *argv[])
}
else
{
TEST_FAIL_WITH_MESSAGE("Caught unexpected exception: " <<
e.what());
throw;
}
}
Expand Down

0 comments on commit 2bfbf29

Please sign in to comment.