Commit a7bca102 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

Merge pull request #186 from cryptix/fixDebug

fix IPFS_DEBUG (was set after SetupLogging)
parents bbfba910 02659c68
......@@ -86,8 +86,6 @@ func ipfsCmd(c *commander.Command, args []string) error {
}
func main() {
u.Debug = u.GetenvBool("IPFS_DEBUG")
// if debugging, setup profiling.
if u.Debug {
ofi, err := os.Create("cpu.prof")
......
......@@ -41,6 +41,7 @@ func SetupLogging() {
}
}
Debug = GetenvBool("IPFS_DEBUG")
if Debug {
lvl = logging.DEBUG
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment