Avoiding of junk in logs.
This commit is contained in:
parent
df3376bc69
commit
ffb401fd9b
4
main.go
4
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.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user