Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: write logs to stderr instead of stdout, fixes #753 #759

Merged
merged 1 commit into from
May 26, 2024
Merged

Conversation

a-h
Copy link
Owner

@a-h a-h commented May 26, 2024

No description provided.

@a-h
Copy link
Owner Author

a-h commented May 26, 2024

This fixes #753

@@ -42,7 +42,7 @@ func shouldSkipDir(dir string) bool {
}

func FindTemplates(srcPath string, output chan<- string) (err error) {
return filepath.Walk(srcPath, func(currentPath string, info fs.FileInfo, err error) error {
return filepath.WalkDir(srcPath, func(currentPath string, info fs.DirEntry, err error) error {
Copy link
Owner Author

@a-h a-h May 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't strictly be in this PR, but I noticed that Walk was being used, and WalkDir is more efficient.

@a-h a-h merged commit 19ffb1c into main May 26, 2024
7 checks passed
@a-h a-h deleted the issue_753 branch May 26, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant