Add 'lib/protocol/' from commit 'f91191218b192ace841c878f161832d19c09145a'

git-subtree-dir: lib/protocol
git-subtree-mainline: 5ecb8bdd8a
git-subtree-split: f91191218b
This commit is contained in:
Jakob Borg
2015-09-22 19:34:29 +02:00
30 changed files with 4101 additions and 0 deletions

15
lib/protocol/debug.go Normal file
View File

@@ -0,0 +1,15 @@
// Copyright (C) 2014 The Protocol Authors.
package protocol
import (
"os"
"strings"
"github.com/calmh/logger"
)
var (
debug = strings.Contains(os.Getenv("STTRACE"), "protocol") || os.Getenv("STTRACE") == "all"
l = logger.DefaultLogger
)