mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
added error logging to low level serve method
This commit is contained in:
parent
230f419df4
commit
2b27f36dac
1 changed files with 6 additions and 1 deletions
|
|
@ -162,7 +162,12 @@ func (s *Server) Open() error {
|
|||
s.Holder.LogOutput = s.LogOutput
|
||||
|
||||
// Serve HTTP.
|
||||
go func() { http.Serve(ln, s.Handler) }()
|
||||
go func() {
|
||||
err := http.Serve(ln, s.Handler)
|
||||
if err != nil {
|
||||
s.logger().Printf("HTTP handler terminated with error: %s\n", err)
|
||||
}
|
||||
}()
|
||||
|
||||
// Start background monitoring.
|
||||
s.wg.Add(3)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue