aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/docker/spdystream/utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/docker/spdystream/utils.go')
-rw-r--r--vendor/github.com/docker/spdystream/utils.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/docker/spdystream/utils.go b/vendor/github.com/docker/spdystream/utils.go
new file mode 100644
index 000000000..1b2c199a4
--- /dev/null
+++ b/vendor/github.com/docker/spdystream/utils.go
@@ -0,0 +1,16 @@
+package spdystream
+
+import (
+ "log"
+ "os"
+)
+
+var (
+ DEBUG = os.Getenv("DEBUG")
+)
+
+func debugMessage(fmt string, args ...interface{}) {
+ if DEBUG != "" {
+ log.Printf(fmt, args...)
+ }
+}