Fix some CLI bugs

This commit is contained in:
Ludovic Fernandez 2019-06-21 09:40:04 +02:00 committed by Traefiker Bot
parent fe68e9e243
commit 1e779f7135
4 changed files with 8 additions and 3 deletions

View file

@ -1,4 +1,3 @@
--accesslog (Default: "false")
Access log settings.
@ -173,6 +172,9 @@
--hostresolver.resolvdepth (Default: "5")
The maximal depth of DNS recursive resolving
--log (Default: "false")
Traefik log settings.
--log.filepath (Default: "")
Traefik log file path. Stdout is used when omitted or empty.

View file

@ -165,6 +165,9 @@ resolv.conf used for DNS resolving (Default: ```/etc/resolv.conf```)
`TRAEFIK_HOSTRESOLVER_RESOLVDEPTH`:
The maximal depth of DNS recursive resolving (Default: ```5```)
`TRAEFIK_LOG`:
Traefik log settings. (Default: "false")
`TRAEFIK_LOG_FILEPATH`:
Traefik log file path. Stdout is used when omitted or empty.

View file

@ -128,5 +128,5 @@ func contains(cmds []*Command, name string) bool {
}
func isFlag(arg string) bool {
return len(arg) > 0 && arg[1] == '-'
return len(arg) > 0 && arg[0] == '-'
}

View file

@ -55,7 +55,7 @@ type Configuration struct {
Ping *ping.Handler `description:"Enable ping." export:"true" label:"allowEmpty"`
// Rest *rest.Provider `description:"Enable Rest backend with default settings" export:"true"`
Log *types.TraefikLog `description:"Traefik log settings." export:"true"`
Log *types.TraefikLog `description:"Traefik log settings." export:"true" label:"allowEmpty"`
AccessLog *types.AccessLog `description:"Access log settings." export:"true" label:"allowEmpty"`
Tracing *Tracing `description:"OpenTracing configuration." export:"true" label:"allowEmpty"`