Clean up logging and improve web interface

This commit is contained in:
2021-02-07 22:06:19 +10:30
parent 942f81a378
commit 2d1ac3c803
5 changed files with 10 additions and 12 deletions

View File

@@ -26,7 +26,9 @@ func LoadOrInit() {
log.Printf("Trying to load from %s\n", configPath)
_, err := os.Stat(configPath)
if os.IsNotExist(err) {
log.Printf("Initialising empty config")
log.Printf("NOTE: No config file, writing out sample configuration")
log.Printf("You need to set the configuration via the web interface")
Config.WebHookURL = ""
Config.Path = homeDir() + string(os.PathSeparator) + "screenshots"
Config.Watch = 10