Commit da88e746 by CaIon

feat: add startup logging with network IPs and container detection

parent b836bce8
......@@ -40,13 +40,11 @@ func LogStartupSuccess(startTime time.Time, port string) {
fmt.Fprintf(gin.DefaultWriter, "\n")
// Skip fancy startup message in container environments
if IsRunningInContainer() {
return
if !IsRunningInContainer() {
// Print local URL
fmt.Fprintf(gin.DefaultWriter, " ➜ \033[1mLocal:\033[0m http://localhost:%s/\n", port)
}
// Print local URL
fmt.Fprintf(gin.DefaultWriter, " ➜ \033[1mLocal:\033[0m http://localhost:%s/\n", port)
// Print network URLs
for _, ip := range networkIps {
fmt.Fprintf(gin.DefaultWriter, " ➜ \033[1mNetwork:\033[0m http://%s:%s/\n", ip, port)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment