提交 a7bca102 作者: Juan Batiz-Benet

Merge pull request #186 from cryptix/fixDebug

fix IPFS_DEBUG (was set after SetupLogging)
...@@ -86,8 +86,6 @@ func ipfsCmd(c *commander.Command, args []string) error { ...@@ -86,8 +86,6 @@ func ipfsCmd(c *commander.Command, args []string) error {
} }
func main() { func main() {
u.Debug = u.GetenvBool("IPFS_DEBUG")
// if debugging, setup profiling. // if debugging, setup profiling.
if u.Debug { if u.Debug {
ofi, err := os.Create("cpu.prof") ofi, err := os.Create("cpu.prof")
......
...@@ -41,6 +41,7 @@ func SetupLogging() { ...@@ -41,6 +41,7 @@ func SetupLogging() {
} }
} }
Debug = GetenvBool("IPFS_DEBUG")
if Debug { if Debug {
lvl = logging.DEBUG lvl = logging.DEBUG
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论