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!
This commit is contained in:
Clayton Craft
2023-03-10 22:33:32 -08:00
parent 128a48dd24
commit a519769979
4 changed files with 4 additions and 4 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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()

View File

@@ -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 {