summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2021-04-14 13:37:15 -0400
committerMatthew Heon <mheon@redhat.com>2021-04-16 11:22:11 -0400
commite5fff58eb5506efbe4bdbe52c900378af22c6aa6 (patch)
tree8c13a723004e765e5c1a3d7cb6096b68eae9351b
parentd98c530f9b41daeeb172a6f698026eabdddd7cfe (diff)
downloadpodman-e5fff58eb5506efbe4bdbe52c900378af22c6aa6.tar.gz
podman-e5fff58eb5506efbe4bdbe52c900378af22c6aa6.tar.bz2
podman-e5fff58eb5506efbe4bdbe52c900378af22c6aa6.zip
Recognize --log-level=trace
"trace" is a valid logrus debugging level, so we should be able to tell the library to display messages logged at that level. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
-rw-r--r--cmd/podman/common/completion.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/common/completion.go b/cmd/podman/common/completion.go
index bc106263c..9eb7431aa 100644
--- a/cmd/podman/common/completion.go
+++ b/cmd/podman/common/completion.go
@@ -21,7 +21,7 @@ var (
// ChangeCmds is the list of valid Change commands to passed to the Commit call
ChangeCmds = []string{"CMD", "ENTRYPOINT", "ENV", "EXPOSE", "LABEL", "ONBUILD", "STOPSIGNAL", "USER", "VOLUME", "WORKDIR"}
// LogLevels supported by podman
- LogLevels = []string{"debug", "info", "warn", "warning", "error", "fatal", "panic"}
+ LogLevels = []string{"trace", "debug", "info", "warn", "warning", "error", "fatal", "panic"}
)
type completeType int
@@ -995,7 +995,7 @@ func AutocompleteEventBackend(cmd *cobra.Command, args []string, toComplete stri
}
// AutocompleteLogLevel - Autocomplete log level options.
-// -> "debug", "info", "warn", "error", "fatal", "panic"
+// -> "trace", "debug", "info", "warn", "error", "fatal", "panic"
func AutocompleteLogLevel(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
return LogLevels, cobra.ShellCompDirectiveNoFileComp
}