Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
a7bca102
Commit
a7bca102
authored
Oct 18, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #186 from cryptix/fixDebug
fix IPFS_DEBUG (was set after SetupLogging)
parents
bbfba910
02659c68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
cmd/ipfs/ipfs.go
cmd/ipfs/ipfs.go
+0
-2
util/log.go
util/log.go
+1
-0
No files found.
cmd/ipfs/ipfs.go
View file @
a7bca102
...
...
@@ -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"
)
...
...
util/log.go
View file @
a7bca102
...
...
@@ -41,6 +41,7 @@ func SetupLogging() {
}
}
Debug
=
GetenvBool
(
"IPFS_DEBUG"
)
if
Debug
{
lvl
=
logging
.
DEBUG
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment