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:
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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()
|
||||
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user