Cleaned up the logging
Signed-off-by: arzumify <jliwin98@danwin1210.de>
This commit is contained in:
parent
d8a6a48c43
commit
684c9d6d48
4
main.go
4
main.go
|
@ -1106,8 +1106,8 @@ func main() {
|
||||||
iterateThroughSubdomains(globalOutbox)
|
iterateThroughSubdomains(globalOutbox)
|
||||||
|
|
||||||
// Start the servers
|
// Start the servers
|
||||||
|
slog.Info("Starting servers")
|
||||||
for port, router := range portRouters {
|
for port, router := range portRouters {
|
||||||
slog.Info("Starting server on port " + port)
|
|
||||||
if !router.HTTPSEnabled() {
|
if !router.HTTPSEnabled() {
|
||||||
go func() {
|
go func() {
|
||||||
// Start the HTTP server
|
// 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
|
// Wait for a signal to stop the server
|
||||||
signalChannel := make(chan os.Signal, 1)
|
signalChannel := make(chan os.Signal, 1)
|
||||||
signal.Notify(signalChannel, os.Interrupt, syscall.SIGTERM)
|
signal.Notify(signalChannel, os.Interrupt, syscall.SIGTERM)
|
||||||
|
|
Loading…
Reference in New Issue