fix IPFS_DEBUG (was set after SetupLogging)
Henry committed
Oct 18, 2014 at 12:03 UTC
02659c68b6efb66825f808720c98a7da45dff5da
2 files changed
+1
-2
cmd/ipfs/ipfs.go
-2
@@ -86,8 +86,6 @@ func ipfsCmd(c *commander.Command, args []string) error {
86
}
87
88
func main() {
89
- u.Debug = u.GetenvBool("IPFS_DEBUG")
90
-
89
// if debugging, setup profiling.
90
if u.Debug {
91
ofi, err := os.Create("cpu.prof")
util/log.go
+1
@@ -41,6 +41,7 @@ func SetupLogging() {
41
}
42
}
43
44
+ Debug = GetenvBool("IPFS_DEBUG")
45
if Debug {
46
lvl = logging.DEBUG
47
}