From a519769979c7447f0ae45408135bb0515476a43d Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Fri, 10 Mar 2023 22:33:32 -0800 Subject: [PATCH] filelist/*: use "searching" instead of "including" in top-level msg When this is printed, it's about to search the given path for stuff to slurp up, but it hasn't actually included anything yet. Using "Including" here was kinda confusing, so this changes it to use "Searching for." Hopefully that's better! --- internal/filelist/hookdirs/hookdirs.go | 2 +- internal/filelist/hookfiles/hookfiles.go | 2 +- internal/filelist/hookscripts/hookscripts.go | 2 +- internal/filelist/modules/modules.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/filelist/hookdirs/hookdirs.go b/internal/filelist/hookdirs/hookdirs.go index 85d5837..8e46934 100644 --- a/internal/filelist/hookdirs/hookdirs.go +++ b/internal/filelist/hookdirs/hookdirs.go @@ -23,7 +23,7 @@ func New(path string) *HookDirs { } func (h *HookDirs) List() (*filelist.FileList, error) { - log.Printf("- Creating directories specified in %s", h.path) + log.Printf("- Searching for directories specified in %s", h.path) files := filelist.NewFileList() fileInfo, err := os.ReadDir(h.path) diff --git a/internal/filelist/hookfiles/hookfiles.go b/internal/filelist/hookfiles/hookfiles.go index c5f6e6c..e87ed27 100644 --- a/internal/filelist/hookfiles/hookfiles.go +++ b/internal/filelist/hookfiles/hookfiles.go @@ -26,7 +26,7 @@ func New(filePath string) *HookFiles { } func (h *HookFiles) List() (*filelist.FileList, error) { - log.Printf("- Including file lists from %s", h.filePath) + log.Printf("- Searching for file lists from %s", h.filePath) files := filelist.NewFileList() fileInfo, err := os.ReadDir(h.filePath) diff --git a/internal/filelist/hookscripts/hookscripts.go b/internal/filelist/hookscripts/hookscripts.go index b0d45dc..2eea21f 100644 --- a/internal/filelist/hookscripts/hookscripts.go +++ b/internal/filelist/hookscripts/hookscripts.go @@ -21,7 +21,7 @@ func New(scriptsDir string) *HookScripts { } func (h *HookScripts) List() (*filelist.FileList, error) { - log.Printf("- Including hook scripts from %s", h.scriptsDir) + log.Printf("- Searching for hook scripts from %s", h.scriptsDir) files := filelist.NewFileList() diff --git a/internal/filelist/modules/modules.go b/internal/filelist/modules/modules.go index 3a5bae2..fd110b3 100644 --- a/internal/filelist/modules/modules.go +++ b/internal/filelist/modules/modules.go @@ -30,7 +30,7 @@ func New(modulesList []string, modulesListPath string) *Modules { } func (m *Modules) List() (*filelist.FileList, error) { - log.Println("- Including kernel modules from ", m.modulesListPath) + log.Printf("- Searching for kernel modules from %s", m.modulesListPath) kernVer, err := osutil.GetKernelVersion() if err != nil {