utils.go 185 Bytes
Newer Older
Jeromy's avatar
Jeromy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package spdystream

import (
	"log"
	"os"
)

var (
	DEBUG = os.Getenv("DEBUG")
)

func debugMessage(fmt string, args ...interface{}) {
	if DEBUG != "" {
		log.Printf(fmt, args...)
	}
}