Skip to content

Commit

Permalink
display logs when running interop based tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed Feb 24, 2017
1 parent 6b46b74 commit 66f8578
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/csharp/Grpc.IntegrationTesting/InteropClient.cs
Expand Up @@ -45,6 +45,7 @@
using Google.Protobuf;
using Grpc.Auth;
using Grpc.Core;
using Grpc.Core.Logging;
using Grpc.Core.Utils;
using Grpc.Testing;
using Newtonsoft.Json.Linq;
Expand Down Expand Up @@ -95,6 +96,7 @@ private InteropClient(ClientOptions options)

public static void Run(string[] args)
{
GrpcEnvironment.SetLogger(new ConsoleLogger());
var parserResult = Parser.Default.ParseArguments<ClientOptions>(args)
.WithNotParsed(errors => Environment.Exit(1))
.WithParsed(options =>
Expand Down
2 changes: 2 additions & 0 deletions src/csharp/Grpc.IntegrationTesting/InteropServer.cs
Expand Up @@ -41,6 +41,7 @@
using CommandLine;
using CommandLine.Text;
using Grpc.Core;
using Grpc.Core.Logging;
using Grpc.Core.Utils;
using Grpc.Testing;
using NUnit.Framework;
Expand Down Expand Up @@ -68,6 +69,7 @@ private InteropServer(ServerOptions options)

public static void Run(string[] args)
{
GrpcEnvironment.SetLogger(new ConsoleLogger());
var parserResult = Parser.Default.ParseArguments<ServerOptions>(args)
.WithNotParsed(errors => Environment.Exit(1))
.WithParsed(options =>
Expand Down
2 changes: 2 additions & 0 deletions src/csharp/Grpc.IntegrationTesting/QpsWorker.cs
Expand Up @@ -42,6 +42,7 @@
using CommandLine;
using CommandLine.Text;
using Grpc.Core;
using Grpc.Core.Logging;
using Grpc.Core.Utils;
using Grpc.Testing;
using NUnit.Framework;
Expand All @@ -65,6 +66,7 @@ private QpsWorker(ServerOptions options)

public static void Run(string[] args)
{
GrpcEnvironment.SetLogger(new ConsoleLogger());
var parserResult = Parser.Default.ParseArguments<ServerOptions>(args)
.WithNotParsed((x) => Environment.Exit(1))
.WithParsed(options =>
Expand Down
1 change: 1 addition & 0 deletions src/csharp/Grpc.IntegrationTesting/StressTestClient.cs
Expand Up @@ -92,6 +92,7 @@ private StressTestClient(ClientOptions options, List<string> serverAddresses, Di

public static void Run(string[] args)
{
GrpcEnvironment.SetLogger(new ConsoleLogger());
var parserResult = Parser.Default.ParseArguments<ClientOptions>(args)
.WithNotParsed((x) => Environment.Exit(1))
.WithParsed(options => {
Expand Down

0 comments on commit 66f8578

Please sign in to comment.