INNER CODE UNIT · Go

exit

statping/statping · cmd/main.go:52

func exit(err error) {
	utils.SentryErr(err)
	log.Fatalln(err)
	os.Exit(1)
}

// Close will gracefully stop the database connection, and log file
func Close() {
	utils.CloseLogs()
	confgs.Close()
	fmt.Println("Shutting down Statping")
}

// main will run the Statping application
func main() {
	go Execute()
	<-stopped
	Close()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…