Better logging for P2P tests

P4:8088395
This commit is contained in:
Fletcher Dunn
2023-05-28 19:06:31 -07:00
parent ae2ef79037
commit ea429d4540
2 changed files with 8 additions and 2 deletions
+6 -1
View File
@@ -181,6 +181,11 @@ int main( int argc, const char **argv )
g_eTestRole = k_ETestRole_Server;
else if ( !strcmp( pszSwitch, "--symmetric" ) )
g_eTestRole = k_ETestRole_Symmetric;
else if ( !strcmp( pszSwitch, "--log" ) )
{
const char *pszArg = GetArg();
TEST_InitLog( pszArg );
}
else
TEST_Fatal( "Unexpected command line argument '%s'", pszSwitch );
}
@@ -224,7 +229,7 @@ int main( int argc, const char **argv )
SteamNetworkingUtils()->SetGlobalCallback_SteamNetConnectionStatusChanged( OnSteamNetConnectionStatusChanged );
// Comment this line in for more detailed spew about signals, route finding, ICE, etc
//SteamNetworkingUtils()->SetGlobalConfigValueInt32( k_ESteamNetworkingConfig_LogLevel_P2PRendezvous, k_ESteamNetworkingSocketsDebugOutputType_Verbose );
SteamNetworkingUtils()->SetGlobalConfigValueInt32( k_ESteamNetworkingConfig_LogLevel_P2PRendezvous, k_ESteamNetworkingSocketsDebugOutputType_Verbose );
// Create listen socket to receive connections on, unless we are the client
if ( g_eTestRole == k_ETestRole_Server )
+2 -1
View File
@@ -83,7 +83,8 @@ def StartClientInThread( role, local, remote ):
"--" + role,
"--identity-local", "str:"+local,
"--identity-remote", "str:"+remote,
"--signaling-server", "localhost:10000"
"--signaling-server", "localhost:10000",
"--log", local + ".verbose.log"
]
env = dict( os.environ )