Skip to content

Commit

Permalink
fix(2/main) respect IPFS_LOGGING == debug behvaior
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
  • Loading branch information
Brian Tiger Chow authored and jbenet committed Nov 15, 2014
1 parent ed4a8eb commit 162169a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ipfs2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (i *cmdInvocation) Run() (output io.Reader, err error) {
if err != nil {
return nil, err
}
if debug || u.GetenvBool("DEBUG") {
if debug || u.GetenvBool("DEBUG") || os.Getenv("IPFS_LOGGING") == "debug" {
u.Debug = true
u.SetAllLoggers(logging.DEBUG)
}
Expand Down

0 comments on commit 162169a

Please sign in to comment.