Skip to content

Commit

Permalink
fix(remote/auth): log.Debug() instead of println()
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanilves committed Aug 8, 2018
1 parent efb26eb commit 2d43734
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tag/remote/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"net/http"
"strings"

log "github.com/sirupsen/logrus"

"github.com/ivanilves/lstags/repository"
"github.com/ivanilves/lstags/tag/remote/auth/basic"
"github.com/ivanilves/lstags/tag/remote/auth/bearer"
Expand Down Expand Up @@ -88,7 +90,7 @@ func NewToken(repo *repository.Repository, username, password string) (TokenResp
case "Basic":
t, err := basic.RequestToken(url, username, password)
if err != nil {
println(err.Error())
log.Debug(err.Error())

return none.RequestToken()
}
Expand Down

0 comments on commit 2d43734

Please sign in to comment.