Skip to content

"EnableDebug = false" still results in the "Console output" when streaming response with the log... #485

@keiserS

Description

@keiserS

Bug Report

Overview

To Reproduce

Steps to reproduce the behavior:
Check the code:

  private async Task<Response> StreamResponseAsync(...)
  {
...
            Console.WriteLine("\"" + text + "\": " + ssEvent.ToJsonString());  // <<<<<<<<<<<< is written always (maybe its feature?
            JsonNode jsonNode = ssEvent.Data ?? ssEvent.Value;
....

Expected behavior

Maybe the code should be like this?

...
if (base.EnableDebug)
{
            Console.WriteLine("\"" + text + "\": " + ssEvent.ToJsonString()); 
}
..

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions