@@ -2,25 +2,22 @@ package cmd
22
33import (
44 "fmt"
5- "log/syslog"
65 "net/http"
76 "net/url"
87 "os"
98 "strings"
109
11- "github.com/semaphoreui/semaphore/api/helpers"
12- "github.com/semaphoreui/semaphore/services/server"
13- lSyslog "github.com/sirupsen/logrus/hooks/syslog"
14-
1510 "github.com/gorilla/handlers"
1611 "github.com/semaphoreui/semaphore/api"
12+ "github.com/semaphoreui/semaphore/api/helpers"
1713 "github.com/semaphoreui/semaphore/api/sockets"
1814 "github.com/semaphoreui/semaphore/db"
1915 "github.com/semaphoreui/semaphore/db/factory"
2016 proFactory "github.com/semaphoreui/semaphore/pro/db/factory"
2117 proServer "github.com/semaphoreui/semaphore/pro/services/server"
2218 proTasks "github.com/semaphoreui/semaphore/pro/services/tasks"
2319 "github.com/semaphoreui/semaphore/services/schedules"
20+ "github.com/semaphoreui/semaphore/services/server"
2421 "github.com/semaphoreui/semaphore/services/tasks"
2522 "github.com/semaphoreui/semaphore/util"
2623 log "github.com/sirupsen/logrus"
@@ -73,17 +70,6 @@ func Execute() {
7370 }
7471}
7572
76- func initSyslog (conf * util.SyslogConfig ) {
77- if conf .Enabled {
78- hook , err := lSyslog .NewSyslogHook (conf .Network , conf .Address , syslog .LOG_DEBUG , conf .Tag )
79- if err == nil {
80- log .AddHook (hook )
81- } else {
82- log .WithError (err ).Fatal ("Failed to create syslog hook" )
83- }
84- }
85- }
86-
8773func runService () {
8874 store := createStore ("root" )
8975
0 commit comments