Cleaned up the logging

Signed-off-by: arzumify <jliwin98@danwin1210.de>
This commit is contained in:
Tracker-Friendly 2024-11-14 19:52:57 +00:00
parent d8a6a48c43
commit 684c9d6d48
1 changed files with 3 additions and 1 deletions

View File

@ -1106,8 +1106,8 @@ func main() {
iterateThroughSubdomains(globalOutbox)
// Start the servers
slog.Info("Starting servers")
for port, router := range portRouters {
slog.Info("Starting server on port " + port)
if !router.HTTPSEnabled() {
go func() {
// Start the HTTP server
@ -1134,6 +1134,8 @@ func main() {
}
}
slog.Info("Servers started. Fulgens is now running. Press Ctrl+C to stop the server.")
// Wait for a signal to stop the server
signalChannel := make(chan os.Signal, 1)
signal.Notify(signalChannel, os.Interrupt, syscall.SIGTERM)