Skip to content

[BUG]: extra logging in non-root commands #1499

@waldekmastykarz

Description

@waldekmastykarz

Description

When running non-root commands, there's extra logging which interferes with the command's output

Expected behaviour

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6Ik1lZ2FuIEJvd2VuIiwic3ViIjoiTWVnYW4gQm93ZW4iLCJqdGkiOiJmMTZlOTllIiwic2NwIjoiQ3VzdG9tZXJzLlJlYWQiLCJhdWQiOiJodHRwczovL2FwaS5jb250b3NvLmNvbSIsIm5iZiI6MTc2ODU1OTUxMSwiZXhwIjoxNzY4NTU5NTExLCJpYXQiOjE3Njg1NTk1MTEsImlzcyI6ImRldi1wcm94eSJ9.VUKYcsSrHrG69R9nmBbrSx_QDZ93wzp3eAzaGJ6vkhs

Actual behaviour

 warn    AddPlugins: The version of schema does not match the installed Dev Proxy version, the expected schema is https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.1.0/rc.schema.json
 warn    The version of schema does not match the installed Dev Proxy version, the expected schema is https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.1.0/crudapiplugin.schema.json
 warn    The version of schema does not match the installed Dev Proxy version, the expected schema is https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.1.0/crudapiplugin.apifile.schema.json
 info    5 actions for CRUD API loaded from /Users/waldek/github/pnp/proxy-samples/samples/jwt-testing-toolkit/.devproxy/customers-api.json
 info    Data for CRUD API loaded from customers-data.json for API /Users/waldek/github/pnp/proxy-samples/samples/jwt-testing-toolkit/.devproxy/customers-api.json
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6Ik1lZ2FuIEJvd2VuIiwic3ViIjoiTWVnYW4gQm93ZW4iLCJqdGkiOiJmMTZlOTllIiwic2NwIjoiQ3VzdG9tZXJzLlJlYWQiLCJhdWQiOiJodHRwczovL2FwaS5jb250b3NvLmNvbSIsIm5iZiI6MTc2ODU1OTUxMSwiZXhwIjoxNzY4NTU5NTExLCJpYXQiOjE3Njg1NTk1MTEsImlzcyI6ImRldi1wcm94eSJ9.VUKYcsSrHrG69R9nmBbrSx_QDZ93wzp3eAzaGJ6vkhs

Steps to reproduce

devproxy jwt create --name "Megan Bowen" --issuer "dev-proxy" --audiences "https://api.contoso.com" --scopes "Customers.Read"

Dev Proxy Version

latest from main

Operating system (environment)

macOS

Shell

zsh

Configuration file

{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/rc.schema.json",
  "plugins": [
    {
      "name": "CrudApiPlugin",
      "enabled": true,
      "pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
      "configSection": "customersApi"
    }
  ],
  "urlsToWatch": [
    "https://api.contoso.com/*"
  ],
  "customersApi": {
    "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/crudapiplugin.schema.json",
    "apiFile": "customers-api.json"
  }
}

Additional Info

No response

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions