func main() { log.SetDefaultLogLevel(log.DEBUG) err := caller.Start() if err != nil { log.Warn("Failed to start caller: %v", err) return } // Receive an incoming call. caller.ServeInvite() <-time.After(2 * time.Second) // Send the BYE caller.Bye(callee) }
func TestAAAASetup(t *testing.T) { log.SetDefaultLogLevel(log.WARN) testLog.Level = log.DEBUG }
func TestAAAAA(t *testing.T) { timing.MockMode = true log.SetDefaultLogLevel(c_LOG_LEVEL) }