Skip to content

Commit

Permalink
fix: change log level
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Apr 14, 2023
1 parent 878cc0c commit 8101e61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/controller/run/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type Action struct {
func (ctrl *Controller) parseLine(ctx context.Context, logE *logrus.Entry, line string) (string, error) { //nolint:cyclop
matches := usesPattern.FindStringSubmatch(line)
if matches == nil {
logE.WithField("line", line).Info("unmatch")
logE.WithField("line", line).Debug("unmatch")
return line, nil
}
action := &Action{
Expand All @@ -71,7 +71,7 @@ func (ctrl *Controller) parseLine(ctx context.Context, logE *logrus.Entry, line
Tag: matches[3],
}
if f := ctrl.parseAction(action); !f {
logE.WithField("line", line).Info("ignore line")
logE.WithField("line", line).Debug("ignore line")
return line, nil
}
if action.Tag == "" { //nolint:nestif
Expand All @@ -98,15 +98,15 @@ func (ctrl *Controller) parseLine(ctx context.Context, logE *logrus.Entry, line
// list releases
// extract releases by commit hash
if !shortTagPattern.MatchString(action.Tag) {
logE.WithField("action_version", action.Version).Info("ignore the line because the tag is not short")
logE.WithField("action_version", action.Version).Debug("ignore the line because the tag is not short")
return line, nil
}
longVersion, err := ctrl.getLongVersionFromSHA(ctx, action, action.Version)
if err != nil {
return "", err
}
if longVersion == "" {
logE.Info("failed to get a long tag")
logE.Debug("failed to get a long tag")
return line, nil
}
return ctrl.patchLine(line, action, action.Version, longVersion), nil
Expand Down

0 comments on commit 8101e61

Please sign in to comment.