Maintenance: upgrade golibs (affects logger)
This commit is contained in:
@@ -65,7 +65,7 @@ const (
|
||||
func NewLooper(settings configuration.OpenVPN,
|
||||
username string, puid, pgid int, allServers models.AllServers,
|
||||
conf Configurator, fw firewall.Configurator, routing routing.Routing,
|
||||
logger logging.Logger, client *http.Client, openFile os.OpenFileFunc,
|
||||
logger logging.ParentLogger, client *http.Client, openFile os.OpenFileFunc,
|
||||
tunnelReady chan<- struct{}, healthy <-chan bool) Looper {
|
||||
return &looper{
|
||||
state: state{
|
||||
@@ -79,8 +79,8 @@ func NewLooper(settings configuration.OpenVPN,
|
||||
conf: conf,
|
||||
fw: fw,
|
||||
routing: routing,
|
||||
logger: logger.NewChild(logging.SetPrefix("openvpn: ")),
|
||||
pfLogger: logger.NewChild(logging.SetPrefix("port forwarding: ")),
|
||||
logger: logger.NewChild(logging.Settings{Prefix: "openvpn: "}),
|
||||
pfLogger: logger.NewChild(logging.Settings{Prefix: "port forwarding: "}),
|
||||
client: client,
|
||||
openFile: openFile,
|
||||
tunnelReady: tunnelReady,
|
||||
|
||||
@@ -29,7 +29,7 @@ type configurator struct {
|
||||
|
||||
func NewConfigurator(logger logging.Logger, os os.OS, unix unix.Unix) Configurator {
|
||||
return &configurator{
|
||||
logger: logger.NewChild(logging.SetPrefix("openvpn configurator: ")),
|
||||
logger: logger,
|
||||
commander: command.NewCommander(),
|
||||
os: os,
|
||||
unix: unix,
|
||||
|
||||
Reference in New Issue
Block a user