Skip to content

Windows log level incompatible with earlier versions of PowerShell #62

@LMarkie

Description

@LMarkie

The ternary operator was introduced in PowerShell 7 whereas 5.1 is the pre-installed version.
Replacing with an if-else (see $metricsEndpoint), or another viable alternative, would increase the compatibility of the script.

log level line
level = "$($env:log_level -eq $null ? 'warn' : $env:log_level)"

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