fix: honor global flag --debug
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
@@ -32,7 +32,8 @@ type ServerConfig struct {
|
||||
CertFile,
|
||||
ClientCaFile string
|
||||
|
||||
ClientAuth bool
|
||||
ClientAuth,
|
||||
Debug bool
|
||||
}
|
||||
|
||||
// StartServer Starts one instance of each server in a goroutine and remains listening on a channel for trace events generated by them
|
||||
@@ -41,7 +42,7 @@ func StartServer(config ServerConfig) {
|
||||
wg.Add(3)
|
||||
go control.Run(config.ControlBindAddr, &wg)
|
||||
go data.Run(config.DataBindAddr, &wg)
|
||||
go user.Run(config.UserBindAddr, &wg, config.CertFile, config.KeyFile, config.ClientCaFile, config.ClientAuth)
|
||||
go user.Run(config.UserBindAddr, &wg, config.CertFile, config.KeyFile, config.ClientCaFile, config.ClientAuth, config.Debug)
|
||||
|
||||
// Wait for servers signals in order to return
|
||||
wg.Wait()
|
||||
|
||||
Reference in New Issue
Block a user