1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 17:36:38 +08:00

fix(2/main) respect IPFS_LOGGING == debug behvaior

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
Brian Tiger Chow
2014-11-14 15:48:00 -08:00
committed by Juan Batiz-Benet
parent ed4a8eb782
commit 162169af77

View File

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