Engine: optional environment variable 'Logging' in 'serveapi'

This commit is contained in:
Solomon Hykes
2013-10-27 07:06:43 +00:00
parent 4e7cb37dcc
commit 02ddaad5d9
2 changed files with 5 additions and 2 deletions

View File

@@ -88,7 +88,8 @@ func (srv *Server) ListenAndServe(job *engine.Job) string {
return "Invalid protocol format."
}
go func() {
chErrors <- ListenAndServe(protoAddrParts[0], protoAddrParts[1], srv, true)
// FIXME: merge Server.ListenAndServe with ListenAndServe
chErrors <- ListenAndServe(protoAddrParts[0], protoAddrParts[1], srv, job.GetenvBool("Logging"))
}()
}
for i := 0; i < len(protoAddrs); i += 1 {