Skip to content

Commit

Permalink
fix(kprofefe): the output when a profile get stored in profefe is wrong
Browse files Browse the repository at this point in the history
When a profile gets pushed to profefe we log a URL to easy lookup but
the output was wrong because we was printing the profile type as well

Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
  • Loading branch information
Gianluca Arbezzano committed Dec 19, 2019
1 parent a69186e commit a895dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/kprofefe.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func do(ctx context.Context, l *zap.Logger, pClient *profefe.Client, target core
if err != nil {
logger.Warn("Unknown profile type it can not be sent to profefe. Skip this profile", zap.Error(err))
} else {
logger.Info("Profile stored in profefe.", zap.String("id", saved.Body.ID), zap.String("profefe_profile_type", profefeType.String()), zap.String("url", fmt.Sprintf("%s/api/0/profiles/%s type=%s", ProfefeHostPort, saved.Body.ID, profefeType)))
logger.Info("Profile stored in profefe.", zap.String("id", saved.Body.ID), zap.String("profefe_profile_type", profefeType.String()), zap.String("url", fmt.Sprintf("%s/api/0/profiles/%s", ProfefeHostPort, saved.Body.ID)))
}
}
}

0 comments on commit a895dc2

Please sign in to comment.