1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-01 19:24:14 +08:00

Merge pull request #186 from cryptix/fixDebug

fix IPFS_DEBUG (was set after SetupLogging)
This commit is contained in:
Juan Batiz-Benet
2014-10-18 03:30:14 -07:00
2 changed files with 1 additions and 2 deletions

View File

@ -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")

View File

@ -41,6 +41,7 @@ func SetupLogging() {
} }
} }
Debug = GetenvBool("IPFS_DEBUG")
if Debug { if Debug {
lvl = logging.DEBUG lvl = logging.DEBUG
} }