From ffb401fd9bc6e342bbea71a56ff65ca246058e87 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 13 Jan 2024 04:02:56 +0400 Subject: [PATCH] Avoiding of junk in logs. --- main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.go b/main.go index d679349..4645673 100644 --- a/main.go +++ b/main.go @@ -75,8 +75,6 @@ func main() { syssignal := make(chan os.Signal, 1) signal.Notify(syssignal, os.Interrupt, syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP) - log.Printf("httpprocprobed is running on \"%s\".", conf.ListenAddress) - for { switch <-syssignal { case os.Interrupt: @@ -86,7 +84,6 @@ func main() { if err := srv.Shutdown(context.Background()); err != nil { log.Fatalf("%s\n", err) } - log.Println("Server shutted down.") os.Exit(0) case syscall.SIGHUP: newconf, err := LoadConfiguration(*configPath) @@ -94,7 +91,6 @@ func main() { log.Fatalf("Failed to reload a list of processes from configuration: %s\n", err) } conf.Processes = newconf.Processes - log.Println("Successfully reloaded a list of watched processes.") } } }