You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: serve.go
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ func (s *Server) printStartupMessage() {
43
43
if!s.disableStartupMessages {
44
44
elapsed:=time.Since(s.startTime)
45
45
slog.Debug("Server started in "+elapsed.String(), "info", "time between since server creation (fuego.NewServer) and server startup (fuego.Run). Depending on your implementation, there might be things that do not depend on fuego slowing start time")
46
-
slog.Info("Server running ✅ on "+s.proto()+"://"+s.Server.Addr, "started in", elapsed.String())
46
+
slog.Info("Server running ✅ on "+s.url(), "started in", elapsed.String())
47
47
}
48
48
}
49
49
@@ -54,6 +54,10 @@ func (s *Server) proto() string {
54
54
return"http"
55
55
}
56
56
57
+
func (s*Server) url() string {
58
+
returns.proto() +"://"+s.Server.Addr
59
+
}
60
+
57
61
// initializes any Context type with the base ContextNoBody context.
58
62
//
59
63
// var ctx ContextWithBody[any] // does not work because it will create a ContextWithBody[any] with a nil value
0 commit comments