mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 18:13:54 +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:

committed by
Juan Batiz-Benet

parent
ed4a8eb782
commit
162169af77
@ -131,7 +131,7 @@ func (i *cmdInvocation) Run() (output io.Reader, err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if debug || u.GetenvBool("DEBUG") {
|
if debug || u.GetenvBool("DEBUG") || os.Getenv("IPFS_LOGGING") == "debug" {
|
||||||
u.Debug = true
|
u.Debug = true
|
||||||
u.SetAllLoggers(logging.DEBUG)
|
u.SetAllLoggers(logging.DEBUG)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user