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:
@@ -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),
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user