summaryrefslogtreecommitdiffstats
path: root/modules/graceful/server.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-03-08 02:43:59 +0000
committerGitHub <noreply@github.com>2021-03-08 03:43:59 +0100
commitc03f530212249b18ffb73dfa47c99e9a4ed7c86c (patch)
treed6fc58f469c32e796491eee02a1f9ccbfde957ae /modules/graceful/server.go
parent78b7529cd471eafefd555fe82b8dbb8b63dcd9f5 (diff)
downloadgitea-c03f530212249b18ffb73dfa47c99e9a4ed7c86c.tar.gz
gitea-c03f530212249b18ffb73dfa47c99e9a4ed7c86c.zip
Make internal SSH server host key path configurable (#14918)
* Make SSH server host key path configurable * make it possible to have multiple keys * Make gitea.rsa the default key * Add some more logging Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/graceful/server.go')
-rw-r--r--modules/graceful/server.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/graceful/server.go b/modules/graceful/server.go
index e7394f349e..c5021a9ba5 100644
--- a/modules/graceful/server.go
+++ b/modules/graceful/server.go
@@ -48,11 +48,11 @@ type Server struct {
}
// NewServer creates a server on network at provided address
-func NewServer(network, address string) *Server {
+func NewServer(network, address, name string) *Server {
if GetManager().IsChild() {
- log.Info("Restarting new server: %s:%s on PID: %d", network, address, os.Getpid())
+ log.Info("Restarting new %s server: %s:%s on PID: %d", name, network, address, os.Getpid())
} else {
- log.Info("Starting new server: %s:%s on PID: %d", network, address, os.Getpid())
+ log.Info("Starting new %s server: %s:%s on PID: %d", name, network, address, os.Getpid())
}
srv := &Server{
wg: sync.WaitGroup{},