Commit 3ebce694 authored by Sebastian Stark's avatar Sebastian Stark

make tests pass with go 1.11

parent 8dd4fd29
......@@ -175,7 +175,7 @@ func loadConfig() *Config {
log.Fatalln("no such schedule:", config.Schedule)
}
path := filepath.Join(config.repository, dataSubdir)
debugf("creating repository:", path)
debugf("creating repository: %s", path)
err := os.MkdirAll(path, 00755)
if err != nil {
log.Fatal(err)
......@@ -216,7 +216,7 @@ func loadConfig() *Config {
log.Println("error reading cached settings:", err)
log.Fatalf("this does not look like a %s repository\n", myName)
}
debugf("cached config: %s", config)
debugf("cached config: %v", config)
return config
}
case "help", "-h", "--help":
......
......@@ -174,7 +174,7 @@ func subcmdRun() (ferr error) {
signal.Notify(sigc, syscall.SIGINT, syscall.SIGTERM, syscall.SIGUSR1)
select {
case sig := <-sigc:
debugf("Got signal", sig)
debugf("Got signal %s", sig)
switch sig {
case syscall.SIGINT, syscall.SIGTERM:
log.Println("-> Immediate exit")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment