Merge branch 'ticket30125'

This commit is contained in:
Cecylia Bocovich 2019-04-16 12:59:56 -04:00
commit d11e55aabe
7 changed files with 224 additions and 196 deletions

View file

@ -10,12 +10,15 @@ import (
"crypto/tls"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"strings"
"time"
"git.torproject.org/pluggable-transports/snowflake.git/common/safelog"
"golang.org/x/crypto/acme/autocert"
)
@ -233,6 +236,10 @@ func main() {
flag.BoolVar(&disableTLS, "disable-tls", false, "don't use HTTPS")
flag.Parse()
var logOutput io.Writer = os.Stderr
//We want to send the log output through our scrubber first
log.SetOutput(&safelog.LogScrubber{Output: logOutput})
log.SetFlags(log.LstdFlags | log.LUTC)
ctx := NewBrokerContext()