Minor edits to logging/CLI output

* Added 'text' as an example for `--format` flag for `tctl get` (it was
  missing)
* Changed DEBUG to ERROR where appropriate. Fixes #2424
This commit is contained in:
Ev Kontsevoy 2018-12-09 13:27:44 -08:00 committed by Alexander Klizhentas
parent 3f453bd4d8
commit 22c8f9fb2b
2 changed files with 2 additions and 2 deletions

View file

@ -117,7 +117,7 @@ func NewAddrDialer(addrs []utils.NetAddr) DialContext {
if err == nil {
return conn, nil
}
log.Debugf("Failed to dial auth server %v: %v.", addr.Addr, err)
log.Errorf("Failed to dial auth server %v: %v.", addr.Addr, err)
}
// not wrapping on purpose to preserve the original error
return nil, err

View file

@ -85,7 +85,7 @@ func (g *ResourceCommand) Initialize(app *kingpin.Application, config *service.C
g.getCmd = app.Command("get", "Print a YAML declaration of various Teleport resources")
g.getCmd.Arg("resource", "Resource spec: 'type/[name]'").SetValue(&g.ref)
g.getCmd.Flag("format", "Output format: 'yaml' or 'json'").Default(formatYAML).StringVar(&g.format)
g.getCmd.Flag("format", "Output format: 'yaml', 'json' or 'text'").Default(formatYAML).StringVar(&g.format)
g.getCmd.Flag("namespace", "Namespace of the resources").Hidden().Default(defaults.Namespace).StringVar(&g.namespace)
g.getCmd.Flag("with-secrets", "Include secrets in resources like certificate authorities or OIDC connectors").Default("false").BoolVar(&g.withSecrets)