mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-26 21:01:14 +08:00
Improve logging in tests
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
@@ -103,7 +103,7 @@ func (a *Agent) Start(_, dir string, extraArgs ...any) error {
|
||||
"daemon",
|
||||
"--rpc-socket", rpcSockPath,
|
||||
"--rpc-wait",
|
||||
"--log-level", "debug",
|
||||
"--log-level", "debug5",
|
||||
"--sync-hosts=false",
|
||||
)
|
||||
args = append(args, a.ExtraArgs...)
|
||||
@@ -112,9 +112,6 @@ func (a *Agent) Start(_, dir string, extraArgs ...any) error {
|
||||
copt.Combined(a.logFile),
|
||||
copt.Dir(dir),
|
||||
copt.EnvVar("CUNICU_EXPERIMENTAL", "1"),
|
||||
// copt.EnvVar("PION_LOG", "info"),
|
||||
copt.EnvVar("GRPC_GO_LOG_SEVERITY_LEVEL", "debug"),
|
||||
copt.EnvVar("GRPC_GO_LOG_VERBOSITY_LEVEL", fmt.Sprintf("%d", 99)),
|
||||
)
|
||||
|
||||
if a.Command, err = a.Host.Start(binary, args...); err != nil {
|
||||
|
@@ -43,16 +43,18 @@ func NewCoturnNode(n *g.Network, name string, opts ...g.Option) (*CoturnNode, er
|
||||
t := &CoturnNode{
|
||||
Host: h,
|
||||
Config: map[string]string{
|
||||
"verbose": "",
|
||||
"no-tls": "",
|
||||
"no-dtls": "",
|
||||
"lt-cred-mech": "",
|
||||
"simple-log": "",
|
||||
"no-stdout-log": "",
|
||||
"log-file": logPath,
|
||||
"listening-port": strconv.Itoa(stun.DefaultPort),
|
||||
"realm": "cunicu",
|
||||
"cli-password": "cunicu",
|
||||
"verbose": "",
|
||||
"no-tls": "",
|
||||
"no-dtls": "",
|
||||
"lt-cred-mech": "",
|
||||
"simple-log": "",
|
||||
"no-stdout-log": "",
|
||||
"log-file": logPath,
|
||||
"new-log-timestamp": "",
|
||||
"new-log-timestamp-format": "%H:%M:%S",
|
||||
"listening-port": strconv.Itoa(stun.DefaultPort),
|
||||
"realm": "cunicu",
|
||||
"cli-password": "cunicu",
|
||||
},
|
||||
logger: log.Global.Named("node.relay").With(zap.String("node", name)),
|
||||
}
|
||||
|
@@ -60,16 +60,13 @@ func (s *GrpcSignalingNode) Start(_, dir string, extraArgs ...any) error {
|
||||
args := profileArgs
|
||||
args = append(args,
|
||||
"signal",
|
||||
"--log-level", "debug",
|
||||
"--log-level", "debug5",
|
||||
"--listen", fmt.Sprintf(":%d", s.port),
|
||||
)
|
||||
args = append(args, extraArgs...)
|
||||
args = append(args,
|
||||
copt.Dir(dir),
|
||||
copt.Combined(s.logFile),
|
||||
// copt.EnvVar("GOMAXPROCS", "10"),
|
||||
copt.EnvVar("GRPC_GO_LOG_SEVERITY_LEVEL", "debug"),
|
||||
copt.EnvVar("GRPC_GO_LOG_VERBOSITY_LEVEL", "99"),
|
||||
copt.EnvVar("GORACE", fmt.Sprintf("log_path=%s-race.log", s.Name())),
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user