Skip to content

Commit ead6bba

Browse files
committed
minor for #2175
1 parent 1f2215b commit ead6bba

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

core/host/task.go

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func WriteStartupLogOnServe(w io.Writer) func(TaskHost) {
6161
for _, ip := range ips {
6262
listeningURI := netutil.ResolveURL(guessScheme, fmt.Sprintf("%s:%s", ip, port))
6363

64-
listeningURI = "> Network: " + listeningURI
64+
listeningURI = "> Network: " + listeningURI
6565
listeningURIs = append(listeningURIs, listeningURI)
6666
}
6767
}
@@ -73,27 +73,20 @@ func WriteStartupLogOnServe(w io.Writer) func(TaskHost) {
7373
listeningURI := netutil.ResolveURL(guessScheme, addr)
7474
if len(listeningURIs) > 0 {
7575
listeningURIs[0] = "\n" + listeningURIs[0]
76-
listeningURI = "> Local: " + listeningURI
76+
listeningURI = "> Local: " + listeningURI
7777
}
7878
listeningURIs = append(listeningURIs, listeningURI)
79-
80-
_, _ = fmt.Fprintf(w, "Now listening on: %s\nApplication started. Press CTRL+C to shut down.\n",
81-
strings.Join(listeningURIs, "\n"))
82-
8379
/*
84-
When :8080 or 0.0.0.0:8080:
85-
Now listening on:
86-
> Network: http://192.168.1.109:8080
87-
> Network: http://172.25.224.1:8080
88-
> Local: http://localhost:8080
89-
Application started. Press CTRL+C to shut down.
80+
Now listening on:
81+
> Network: http://192.168.1.109:8080
82+
> Network: http://172.25.224.1:8080
83+
> Local: http://localhost:8080
9084
9185
Otherwise:
92-
Iris Version: 12.2.1
93-
9486
Now listening on: http://192.168.1.109:8080
95-
Application started. Press CTRL+C to shut down.
9687
*/
88+
_, _ = fmt.Fprintf(w, "Now listening on: %s\nApplication started. Press CTRL+C to shut down.\n",
89+
strings.Join(listeningURIs, "\n"))
9790
}
9891
}
9992

0 commit comments

Comments
 (0)