diff --git a/core/download.go b/core/download.go index 386a648..743526b 100644 --- a/core/download.go +++ b/core/download.go @@ -36,9 +36,9 @@ func (d *Downloader) Run(ctx context.Context) (context.Context, error) { location := filepath.Join(d.tempDir, name) - logger.Debug("downloading command", map[string]interface{}{ - "url": url, - "target": location, + logger.Info("downloading", map[string]interface{}{ + "url": url, + "name": name, }) err = utils.DownloadToFile(ctx, url, location) if err != nil { diff --git a/core/github.go b/core/github.go index 5b1b2ce..222151e 100644 --- a/core/github.go +++ b/core/github.go @@ -22,7 +22,7 @@ func (r *ReleaseSearcher) String() string { func (r *ReleaseSearcher) Run(ctx context.Context) (context.Context, error) { logger := define.Logger - logger.Debug("searching cmdr release", map[string]interface{}{ + logger.Info("searching cmdr release", map[string]interface{}{ "release": r.release, "asset": r.asset, }) @@ -53,6 +53,10 @@ func (r *ReleaseSearcher) Run(ctx context.Context) (context.Context, error) { return ctx, errors.Wrapf(ErrAssetNotFound, "cmdr release not found: %s", r.asset) } + logger.Info("cmdr release found", map[string]interface{}{ + "release": version, + "url": url, + }) return utils.SetIntoContext(ctx, map[define.ContextKey]interface{}{ define.ContextKeyVersion: version, define.ContextKeyLocation: url,