Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/core/build_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (b *BuildInfo) checkVersion() {
}

if b.Version.LessThan(latestVersion) {
logger.Infof("a new version of scw is available (%s), beware that you are currently running %v", latestVersion, b.Version)
logger.Warningf("a new version of scw is available (%s), beware that you are currently running %v", latestVersion, b.Version)
} else {
logger.Debugf("version is up to date (%s)", b.Version)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/core/cobra_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func cobraPreRunInitMeta(ctx context.Context, cmd *Command) func(cmd *cobra.Comm
var err error
meta := extractMeta(ctx)

logLevel := logger.LogLevelInfo
logLevel := logger.LogLevelWarning
if meta.DebugModeFlag {
logLevel = logger.LogLevelDebug // enable debug mode
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
INFO: 2019/12/09 16:04:07 a new version of scw is available (2.0.0-alpha1), beware that you are currently running 1.20.0
WARNING: 2019/12/09 16:04:07 a new version of scw is available (2.0.0-alpha1), beware that you are currently running 1.20.0
2 changes: 1 addition & 1 deletion internal/core/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func validateArgValues(cmd *Command, cmdArgs interface{}) error {
fieldName = strings.ReplaceAll(fieldName, "."+mapSchema, "")
fieldValue, fieldExists := getValueForFieldByName(cmdArgs, fieldName)
if !fieldExists {
logger.Debugf("could not validate arg value for '%v': invalid fieldName: %v", argSpec.Name, fieldName)
logger.Infof("could not validate arg value for '%v': invalid fieldName: %v", argSpec.Name, fieldName)
continue
}
validateFunc := DefaultArgSpecValidateFunc()
Expand Down