Skip to content

Commit

Permalink
chore: add debug logs when hook is skipped (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox authored Apr 26, 2023
1 parent 12fd41a commit 9bc519b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion internal/config/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ func mergeRemote(fs afero.Fs, repo *git.Repository, v *viper.Viper) error {

// extend merges all files listed in 'extends' option into the config.
func extend(v *viper.Viper, root string) error {
log.Debugf("extends %v\n", v.GetStringSlice("extends"))
for i, path := range v.GetStringSlice("extends") {
if !filepath.IsAbs(path) {
path = filepath.Join(root, path)
Expand Down
1 change: 1 addition & 0 deletions internal/lefthook/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Run 'lefthook install' manually.`,
// Find the hook
hook, ok := cfg.Hooks[hookName]
if !ok {
log.Debugf("[lefthook] skip: Hook %s doesn't exist in the config", hookName)
return nil
}
if err := hook.Validate(); err != nil {
Expand Down

0 comments on commit 9bc519b

Please sign in to comment.