Skip to content

Commit

Permalink
fix console out, print gRPC logs only in DEBUG
Browse files Browse the repository at this point in the history
fixes #135

Signed-off-by: sriv <srikanth.ddit@gmail.com>
  • Loading branch information
sriv committed Dec 2, 2020
1 parent e866948 commit fd4c357
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/ExecutableRunnerServiceHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ public override Task<ExecutionStatusResponse> StartStepExecution(StepExecutionSt

private void InitializeExecutionMessageHandlers()
{
Console.WriteLine("InitializeExecutionMessageHandlers");
var tableFormatter = new TableFormatter(this._assemblyLoader, this._activatorWrapper);
var classInstanceManager = new ThreadLocal<object>(() =>
{
Expand Down
2 changes: 1 addition & 1 deletion src/Gauge.Dotnet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFramework>netcoreapp3.0</TargetFramework>
<PackageId>Runner.NetCore30</PackageId>
<Authors>The Gauge Team</Authors>
<Version>0.3.0</Version>
<Version>0.3.1</Version>
<Company>ThoughtWorks Inc.</Company>
<Product>Gauge</Product>
<Description>C# runner for Gauge. https://gauge.org</Description>
Expand Down
2 changes: 1 addition & 1 deletion src/GaugeListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public virtual void ConfigureServices(IServiceCollection services)
Logger.Debug($"Loading assembly from : {assemblyPath}");
services.AddGrpc();
services.AddLogging(logConfig => {
if (Utils.TryReadEnvValue("GAUGE_LOG_LEVEL") == "DEBUG")
if (Utils.TryReadEnvValue("GAUGE_LOG_LEVEL") != "DEBUG")
{
logConfig.AddFilter("Microsoft", LogLevel.None);
}
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "dotnet",
"version": "0.3.0",
"version": "0.3.1",
"description": "C# support for gauge + .NET Core 3.0",
"run": {
"windows": [
Expand Down

0 comments on commit fd4c357

Please sign in to comment.