Skip to content

Commit

Permalink
fix: log level doc (#6291)
Browse files Browse the repository at this point in the history
close #6290

Signed-off-by: Yvonnick Esnault <[email protected]>
  • Loading branch information
yesnault authored Sep 20, 2022
1 parent 404eea5 commit 73d76a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
type Configuration struct {
// common
Log struct {
Level string `toml:"level" default:"warning" comment:"Log Level: debug, info, warning, notice, critical" json:"level"`
Level string `toml:"level" default:"warning" comment:"Log Level: debug, info, warning, notice, error" json:"level"`
Format string `toml:"format" default:"text" comment:"Stdout format: text, json, discard" json:"format"`
Graylog struct {
Host string `toml:"host" comment:"Example: thot.ovh.com" json:"host"`
Expand Down
2 changes: 1 addition & 1 deletion engine/worker/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func initFlagsRun(cmd *cobra.Command) {
flags.String(flagGraylogPort, "", "Ex: --graylog-port=12202")
flags.String(flagGraylogExtraKey, "", "Ex: --graylog-extra-key=xxxx-yyyy")
flags.String(flagGraylogExtraValue, "", "Ex: --graylog-extra-value=xxxx-yyyy")
flags.String(flagLogLevel, "notice", "Log Level: debug, info, notice, warning, critical")
flags.String(flagLogLevel, "notice", "Log Level: debug, info, notice, warning, error")
flags.String(flagAPI, "", "URL of CDS API")
flags.Bool(flagInsecure, false, `(SSL) This option explicitly allows curl to perform "insecure" SSL connections and transfers.`)
flags.String(flagToken, "", "CDS Token")
Expand Down

0 comments on commit 73d76a3

Please sign in to comment.