mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
This commit is contained in:
parent
dd850f66bb
commit
159d1a68e1
@ -13,6 +13,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
@ -337,6 +338,9 @@ func (s *service) serve(stop chan struct{}) {
|
|||||||
// ReadTimeout must be longer than SyncthingController $scope.refresh
|
// ReadTimeout must be longer than SyncthingController $scope.refresh
|
||||||
// interval to avoid HTTP keepalive/GUI refresh race.
|
// interval to avoid HTTP keepalive/GUI refresh race.
|
||||||
ReadTimeout: 15 * time.Second,
|
ReadTimeout: 15 * time.Second,
|
||||||
|
// Prevent the HTTP server from logging stuff on its own. The things we
|
||||||
|
// care about we log ourselves from the handlers.
|
||||||
|
ErrorLog: log.New(ioutil.Discard, "", 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
l.Infoln("GUI and API listening on", listener.Addr())
|
l.Infoln("GUI and API listening on", listener.Addr())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user