mirror of
https://github.com/gravitational/teleport
synced 2024-10-22 02:03:24 +00:00
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:
parent
3f453bd4d8
commit
22c8f9fb2b
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue