Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix console out, print gRPC logs only in DEBUG #136

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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