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:

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 {
|
||||
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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user