Skip to content

Commit

Permalink
Merge pull request #996 from synfinatic/default-log-level
Browse files Browse the repository at this point in the history
change default log level from warn to info
  • Loading branch information
synfinatic authored Jul 14, 2024
2 parents 3c21d64 + 72fedfe commit aa355dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* `config`, `config-profiles` and `completions` are now sub-commands of `setup` #975
* Only the and `cache` command will auto-update the contents of `~/.aws/config` #974
* `tags` command no longer supports the `--force-update` option
* Change default log level from `warn` to `info`

### New Features

Expand Down
4 changes: 2 additions & 2 deletions cmd/aws-sso/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ var DEFAULT_CONFIG map[string]interface{} = map[string]interface{}{
"HistoryMinutes": 1440, // 24hrs
"ListFields": DEFAULT_LIST_FIELDS,
"UrlAction": "open",
"LogLevel": "warn",
"LogLevel": "info",
"ProfileFormat": NICE_PROFILE_FORMAT,
"Threads": DEFAULT_THREADS,
"MaxBackoff": 5, // seconds
Expand All @@ -105,7 +105,7 @@ type CLI struct {
// Common Arguments
Browser string `kong:"short='b',help='Path to browser to open URLs with',env='AWS_SSO_BROWSER'"`
ConfigFile string `kong:"name='config',default='${CONFIG_FILE}',help='Config file',env='AWS_SSO_CONFIG',predict='allFiles'"`
LogLevel string `kong:"short='L',name='level',help='Logging level [error|warn|info|debug|trace] (default: warn)'"`
LogLevel string `kong:"short='L',name='level',help='Logging level [error|warn|info|debug|trace] (default: info)'"`
Lines bool `kong:"help='Print line number in logs'"`
UrlAction string `kong:"short='u',help='How to handle URLs [clip|exec|open|print|printurl|granted-containers|open-url-in-container] (default: open)'"`
SSO string `kong:"short='S',help='Override default AWS SSO Instance',env='AWS_SSO',predictor='sso'"`
Expand Down
2 changes: 1 addition & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ path or disable this configuration option.

#### LogLevel / LogLines

By default, the `LogLevel` is 'warn'. You can override it here or via
By default, the `LogLevel` is 'info'. You can override it here or via
`--log-level` with one of the following values:

* `error`
Expand Down

0 comments on commit aa355dc

Please sign in to comment.