MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / FormatAddr

Function FormatAddr

util/log/log.go:28–33  ·  view source on GitHub ↗
(logIps bool, addr net.Addr)

Source from the content-addressed store, hash-verified

26var mainModuleName = buildInfo.Main.Path[strings.LastIndex(buildInfo.Main.Path, "/")+1:]
27
28func FormatAddr(logIps bool, addr net.Addr) string {
29 if logIps {
30 return "[" + addr.String() + "] "
31 }
32 return ""
33}
34
35func timeString() string {
36 time := time.Now()

Callers 3

handleNewConnectionMethod · 0.92
killConnectionMethod · 0.92

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected