1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 20:41:57 +00:00

include iris version, build time & revision to the startuplog when enabled

This commit is contained in:
kataras
2022-05-04 13:52:51 +03:00
parent 3b95c85d3d
commit e42cd43271
6 changed files with 242 additions and 13 deletions

View File

@@ -17,7 +17,7 @@ import (
)
const (
debug = false
debugMode = false
)
func newTester(t *testing.T, baseURL string, handler http.Handler) *httpexpect.Expect {
@@ -40,7 +40,7 @@ func newTester(t *testing.T, baseURL string, handler http.Handler) *httpexpect.E
Reporter: httpexpect.NewAssertReporter(t),
}
if debug {
if debugMode {
testConfiguration.Printers = []httpexpect.Printer{
httpexpect.NewDebugPrinter(t, true),
}

View File

@@ -27,7 +27,7 @@ func WriteStartupLogOnServe(w io.Writer) func(TaskHost) {
addr = h.Supervisor.Server.Addr
}
listeningURI := netutil.ResolveURL(guessScheme, addr)
_, _ = fmt.Fprintf(w, "Now listening on: %s\nApplication started. Press CTRL/CMD+C to shut down.\n",
_, _ = fmt.Fprintf(w, "Now listening on: %s\nApplication started. Press CTRL+C to shut down.\n",
listeningURI)
}
}