forked from toolshed/abra
refactor: use central logger
This commit is contained in:
@ -3,8 +3,8 @@ package git
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"coopcloud.tech/abra/pkg/log"
|
||||
"github.com/go-git/go-git/v5"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// Commit runs a git commit
|
||||
@ -38,9 +38,9 @@ func Commit(repoPath, commitMessage string, dryRun bool) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
logrus.Debug("git changes commited")
|
||||
log.Debug("git changes commited")
|
||||
} else {
|
||||
logrus.Debug("dry run: no changes commited")
|
||||
log.Debug("dry run: no changes commited")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user