mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Reverted logging changes that require Go 1.13
This commit is contained in:
parent
18d793798c
commit
82e5753bcc
2 changed files with 2 additions and 9 deletions
|
@ -13,7 +13,7 @@ addons:
|
|||
- gcc-5
|
||||
|
||||
go:
|
||||
- 1.13.x
|
||||
- 1.10.x
|
||||
|
||||
env:
|
||||
- TRAVIS_NODE_VERSION="8" CC="gcc-5" CXX="g++-5"
|
||||
|
|
|
@ -9,7 +9,6 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/dchest/uniuri"
|
||||
"github.com/pion/logging"
|
||||
"github.com/pion/webrtc"
|
||||
)
|
||||
|
||||
|
@ -156,13 +155,7 @@ func (c *WebRTCPeer) preparePeerConnection() error {
|
|||
c.pc = nil
|
||||
}
|
||||
|
||||
logFactory := logging.NewDefaultLoggerFactory()
|
||||
logFactory.DefaultLogLevel = logging.LogLevelError
|
||||
logFactory.Writer = log.Writer()
|
||||
|
||||
s := webrtc.SettingEngine{
|
||||
LoggerFactory: logFactory,
|
||||
}
|
||||
s := webrtc.SettingEngine{}
|
||||
s.SetTrickle(true)
|
||||
api := webrtc.NewAPI(webrtc.WithSettingEngine(s))
|
||||
pc, err := api.NewPeerConnection(*c.config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue