Skip to content

Commit

Permalink
Добавил вывод логов при распаковке и переименовании
Browse files Browse the repository at this point in the history
  • Loading branch information
thedemoncat committed Mar 22, 2021
1 parent 5a42634 commit f722f03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ func (c *getCmd) extractFiles(files []string) error {
multierr.Append(mErr, err)
continue
}
log.Infof("Path to extracting files <%d>", extractDir)

if c.Rename {
err := renameFiles(extractDir)
Expand Down Expand Up @@ -306,7 +307,7 @@ func renameFiles(dir string) error {
log.Errorf("Error rename file <%s> to <%s>: %s", oldName, newName, err.Error())
continue
}

log.Infof("New name files <%d>", newName)
}
return nil
}
Expand Down

0 comments on commit f722f03

Please sign in to comment.