Skip to content

Verbosity overridden, even though System.Debug = 'false'  #77

@rpriest1260

Description

@rpriest1260

What You Are Seeing?

verbosity set to Diagnostic and overriding task configured setting, even though system.debug = false.

What is Expected?

if System.Debug is not set to 'true', then the verbosity should follow whatever is set in the task.

What version of Cake are you using?

3.0.0

Are you running on a 32 or 64 bit system?

x64

What environment are you running on? Hosted? Custom?

Hosted

How Did You Get This To Happen? (Steps to Reproduce)

using a build in Azure Devops, set System.Debug = false; Run a cake task in a build.

Here is the code in the repository that is causing this. It only checks for the existence of ' System.Debug'. I contend that
it should check that the value is actually 'true', before overriding the verbosity setting

    const systemDiagnosticsRequested = tl.getVariable('system.debug');
    if(systemDiagnosticsRequested) {
        $verbosity = 'Diagnostic';
    }

Output Log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions