rewrote ftm to log

This commit is contained in:
Hazel Noack 2025-07-16 12:37:58 +02:00
parent 4e87c77ccb
commit 16a65df664

View File

@ -2,7 +2,7 @@ package rendering
import ( import (
"errors" "errors"
"fmt" "log"
"os" "os"
"path/filepath" "path/filepath"
@ -128,7 +128,7 @@ func (rc *Config) LoadConfigFile(file string) error {
return err return err
} }
fmt.Println("loading config file: " + file) log.Println("loading config file", file)
content, err := os.ReadFile(file) content, err := os.ReadFile(file)
@ -140,12 +140,10 @@ func (rc *Config) LoadConfigFile(file string) error {
} }
func (c *Config) Init() error { func (c *Config) Init() error {
fmt.Print("downloading website icons") log.Println("downloading website icons...")
for i := range c.Template.Websites { for i := range c.Template.Websites {
fmt.Print(".")
c.Template.Websites[i].Cache() c.Template.Websites[i].Cache()
} }
fmt.Print("\n")
return nil return nil
} }