log directoy
This commit is contained in:
parent
9e5b1aaf2d
commit
5d9b028c29
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func GetRandomImage() string {
|
||||||
// scan the specified directory
|
// scan the specified directory
|
||||||
func scan(directory string) {
|
func scan(directory string) {
|
||||||
timestamp := time.Now().UnixMilli()
|
timestamp := time.Now().UnixMilli()
|
||||||
loggo.Info("scanning directory for images and subdirectories...", "interval: "+strconv.FormatFloat(config.ScanInterval.Seconds(), 'f', 0, 64)+" seconds", directory)
|
loggo.Info("scanning directory for images and subdirectories...", "interval: "+strconv.FormatFloat(config.ScanInterval.Seconds(), 'f', 0, 64)+" seconds", "directory: "+directory)
|
||||||
filepath.WalkDir(directory, checkDirectory)
|
filepath.WalkDir(directory, checkDirectory)
|
||||||
images = tmpImages
|
images = tmpImages
|
||||||
tmpImages = nil
|
tmpImages = nil
|
||||||
|
|
Loading…
Reference in a new issue